MetadataInterface deprecated::accept()

accept(ValidationVisitorInterface $visitor, mixed $value, string|string[] $group, string $propertyPath) deprecated deprecated since version 2.5, to be removed in 3.0. Implementation of the Visitor design pattern. Calls {@link ValidationVisitorInterface::visit} and then forwards the accept()-call to all property metadata instances. Parameters ValidationVisitorInterface $visitor The visitor implementing the validation logic mixed $value The value to validate string|string[] $group

MetadataInterface deprecated

interface MetadataInterface deprecated since version 2.5, to be removed in 3.0. Use {@link Mapping\MetadataInterface} instead. A container for validation metadata. The container contains constraints that may belong to different validation groups. Constraints for a specific group can be fetched by calling {@link findConstraints}. Implement this interface to add validation metadata to your own metadata layer. Each metadata may have named properties. Each property can be represented by one

MetadataInterface

interface MetadataInterface A container for validation metadata. Most importantly, the metadata stores the constraints against which an object and its properties should be validated. Additionally, the metadata stores whether objects should be validated against their class' metadata and whether traversable objects should be traversed or not. Methods int getCascadingStrategy() Returns the strategy for cascading objects. int getTraversalStrategy() Returns the strategy for traversing tr

MetadataFactoryInterface::hasMetadataFor()

bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Parameters mixed $value Some value Return Value bool Whether metadata can be returned for that value

MetadataFactoryInterface::getMetadataFor()

MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. Parameters mixed $value Some value Return Value MetadataInterface The metadata for the value Exceptions NoSuchMetadataException If no metadata exists for the given value

MetadataFactoryInterface deprecated::hasMetadataFor()

bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Parameters mixed $value Some value Return Value bool Whether metadata can be returned for that value

MetadataFactoryInterface deprecated::getMetadataFor()

MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. Parameters mixed $value Some value Return Value MetadataInterface The metadata for the value Exceptions NoSuchMetadataException If no metadata exists for the given value

MetadataFactoryInterface deprecated

interface MetadataFactoryInterface deprecated since version 2.5, to be removed in 3.0. Use {@link Mapping\Factory\MetadataFactoryInterface} instead. Returns {@link MetadataInterface} instances for values. Methods MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Details MetadataInterface getMetadataFor(

MetadataFactoryInterface

interface MetadataFactoryInterface Returns {@link \Symfony\Component\Validator\Mapping\MetadataInterface} instances for values. Methods MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Details MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. Parameters

MetadataBag::stampNew()

stampNew(int $lifetime = null) Stamps a new session's metadata. Parameters int $lifetime Sets the cookie lifetime for the session cookie. A null value will leave the system settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds, and is not a Unix timestamp.