File::move()

File move(string $directory, string $name = null) Moves the file to a new location. Parameters string $directory The destination folder string $name The new file name Return Value File A File object representing the new file Exceptions FileException if the target file could not be created

ExecutionContext::getGroup()

string getGroup() Returns the validation group that is currently being validated. Return Value string The current validation group

IntlGlobals

class IntlGlobals Provides fake static versions of the global functions in the intl extension. Constants U_ZERO_ERROR Indicates that no error occurred. U_ILLEGAL_ARGUMENT_ERROR Indicates that an invalid argument was passed. U_PARSE_ERROR Indicates that the parse() operation failed. Methods static bool isFailure(int $errorCode) Returns whether the error code indicates a failure. static int getErrorCode() Returns the error code of the last operation. static string getE

NativeSessionStorage::getBag()

SessionBagInterface getBag(string $name) Gets a SessionBagInterface by name. Parameters string $name Return Value SessionBagInterface Exceptions InvalidArgumentException If the bag does not exist

Version::normalize()

static string|null normalize(string $version, int|null $precision) Normalizes a version string to the number of components given in the parameter $precision. Examples: Version::normalize('1.2.3', 1); // => '1' Version::normalize('1.2.3', 2); // => '1.2' Parameters string $version A version string int|null $precision The number of components to include. Pass NULL to return the version unchanged. Return Value string|null The normalized version or NULL if it cou

Response::setSharedMaxAge()

Response setSharedMaxAge(int $value) Sets the number of seconds after which the response should no longer be considered fresh by shared caches. This methods sets the Cache-Control s-maxage directive. Parameters int $value Number of seconds Return Value Response

UndefinedFunctionException

class UndefinedFunctionException extends FatalErrorException Undefined Function Exception. Methods __construct($message, ErrorException $previous) Details __construct($message, ErrorException $previous) Parameters $message ErrorException $previous

OutOfBoundsException

class OutOfBoundsException extends OutOfBoundsException implements ExceptionInterface Base OutOfBoundsException for the Validator component.

LanguageBundleTransformationRule::beforeCreateStub()

mixed beforeCreateStub(StubbingContextInterface $context) Runs instructions to be executed before creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation. Return Value mixed The data to include in the stub version.

PropertyPathInterface

interface PropertyPathInterface implements Traversable A sequence of property names or array indices. Methods string __toString() Returns the string representation of the property path. int getLength() Returns the length of the property path, i.e. the number of elements. PropertyPath getParent() Returns the parent property path. array getElements() Returns the elements of the property path as array. string getElement(int $index) Returns the element at the given index