int|null getPlural() Returns a number for pluralizing the violation message. For example, the message template could have different translation based on a parameter "choices": Please select exactly one entry. (choices=1) Please select two entries. (choices=2) This method returns the value of the parameter for choosing the right pluralization form (in this case "choices"). Return Value int|null The number to use to pluralize of the message
mixed reverseTransform(mixed $value) Transforms a localized number into an integer or float. Parameters mixed $value The value in the transformed representation Return Value mixed The value in the original representation Exceptions TransformationFailedException If the given value is not a string or if the value can not be transformed.
static castDocument(DOMDocument $dom, array $a, Stub $stub, $isNested, $filter) Parameters DOMDocument $dom array $a Stub $stub $isNested $filter
mixed reverseTransform(array $values) Transforms a checkbox/radio button array to a single choice. The input value is an array with the choices as keys and true/false as values, depending on whether a given choice is selected. The output is the selected choice. Parameters array $values An array of values Return Value mixed The value in the original representation Exceptions TransformationFailedException If the given value is not an array, if the recuperation of the choices fail
class Email extends Constraint 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. INVALID_FORMAT_ERROR MX_CHECK_FAILED_ERROR HOST_CHECK_FAILED_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belon
getTests() {@inheritdoc}
int getStatusCode() Retrieves the status code for the current web response. Return Value int Status code
setEscaper(string $context, callable $escaper) Adds an escaper for the given context. Parameters string $context The escaper context (html, js, ...) callable $escaper A PHP callable
getKey()
rewind() {@inheritdoc}
Page 203 of 787