LessThanOrEqualValidator

class LessThanOrEqualValidator extends AbstractComparisonValidator Validates values are less than or equal to the previous (<=). 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)

LessThanOrEqual

class LessThanOrEqual 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. TOO_HIGH_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 $valu

LessThan

class LessThan 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. TOO_HIGH_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 $value from

LengthValidator

class LengthValidator extends ConstraintValidator 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 valid. Details initia

LengthRequiredHttpException

class LengthRequiredHttpException extends HttpException LengthRequiredHttpException. Methods __construct($message = null, Exception $previous = null, $code) Constructor. int getStatusCode() Returns the status code. from HttpException array getHeaders() Returns response headers. from HttpException Details __construct($message = null, Exception $previous = null, $code) Constructor. Parameters $message Exception $previous $code

Length

class Length 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. TOO_SHORT_ERROR TOO_LONG_ERROR INVALID_CHARACTERS_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from

LegacyExecutionContextFactory deprecated

class LegacyExecutionContextFactory implements ExecutionContextFactoryInterface deprecated since version 2.5, to be removed in 3.0. Creates new {@link LegacyExecutionContext} instances. Implemented for backward compatibility with Symfony < 2.5. Methods __construct(MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, string|null $translationDomain = null) Creates a new context factory. ExecutionContextInterface createContext(ValidatorInterface $validator

LegacyExecutionContext deprecated

class LegacyExecutionContext extends ExecutionContext deprecated since version 2.5, to be removed in 3.0. An execution context that is compatible with the legacy API (< 2.5). Methods __construct(ValidatorInterface $validator, mixed $root, MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, string|null $translationDomain = null) Creates a new context. setNode(mixed $value, object|null $object, MetadataInterface $metadata = null, string $propertyPath) Se

LegacyConstraintViolationBuilder deprecated

class LegacyConstraintViolationBuilder implements ConstraintViolationBuilderInterface deprecated since version 2.5.5, to be removed in 3.0. Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}. Methods __construct(ExecutionContextInterface $context, $message, array $parameters) ConstraintViolationBuilderInterface atPath(string $path) Stores the property path at which the violation should be generated. ConstraintViolationBuilderInterface setPar

LegacyChoiceListAdapter deprecated

class LegacyChoiceListAdapter implements ChoiceListInterface deprecated Added for backwards compatibility in Symfony 2.7, to be removed in Symfony 3.0. Adapts a legacy choice list implementation to {@link ChoiceListInterface}. Methods __construct(ChoiceListInterface $adaptedList) Adapts a legacy choice list to {@link ChoiceListInterface}. array getChoices() Returns all selectable choices. string[] getValues() Returns the values for the choices. string[] getStructuredVa