IdentityTranslator::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. Parameters string $id The message id (may also be an object that can be cast to string) array $parameters An array of parameters for the message string|null $domain The domain for the message or null to use the default string|null $locale The locale or null to use the default Return Value string The translated string Exceptions InvalidArgum

IdentityTranslator::setLocale()

setLocale(string $locale) Sets the current locale. Parameters string $locale The locale Exceptions InvalidArgumentException If the locale contains invalid characters

IdentityTranslator::getLocale()

string getLocale() Returns the current locale. Return Value string The locale

IdentityTranslator

class IdentityTranslator implements TranslatorInterface IdentityTranslator does not translate anything. Methods __construct(MessageSelector $selector = null) Constructor. setLocale(string $locale) Sets the current locale. string getLocale() Returns the current locale. string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. string transChoice(string $id, int $number, array $parameters =

IdentifierHandler

class IdentifierHandler implements HandlerInterface CSS selector comment handler. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) bool handle(Reader $reader, TokenStream $stream) Details __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) Parameters Tokeniz

IdenticalToValidator

class IdenticalToValidator extends AbstractComparisonValidator Validates values are identical (===). Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is v

IdenticalTo

class IdenticalTo extends AbstractComparison Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NOT_IDENTICAL_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message $val

IcuVersion::normalize()

static string|null normalize(string $version, int|null $precision) Normalizes a version string to the number of components given in the parameter $precision. A single digit release version and a single digit major version are contracted to a two digit release version. If no major version is given, it is substituted by zero. Examples: IcuVersion::normalize('1.2.3.4'); // => '12.3.4' IcuVersion::normalize('1.2.3.4', 1); // => '12' IcuVersion::normalize('1.2.3.4',

IcuVersion::compare()

static bool compare(string $version1, string $version2, string $operator, int|null $precision = null) Compares two ICU versions with an operator. This method is identical to {@link version_compare()}, except that you can pass the number of regarded version components in the last argument $precision. Also, a single digit release version and a single digit major version are contracted to a two digit release version. If no major version is given, it is substituted by zero

IcuVersion

class IcuVersion Facilitates the comparison of ICU version strings. Methods static bool compare(string $version1, string $version2, string $operator, int|null $precision = null) Compares two ICU versions with an operator. static string|null normalize(string $version, int|null $precision) Normalizes a version string to the number of components given in the parameter $precision. Details static bool compare(string $version1, string $version2, string $oper