interface MetadataInterface implements 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.
accept(ValidationVisitorInterface $visitor, mixed $value, string|string[] $group, string $propertyPath) Implementation of the Visitor design pattern. | from MetadataInterface | |
Constraint[] | findConstraints(string $group) Returns all constraints for a given validation group. | from MetadataInterface |
int | getCascadingStrategy() Returns the strategy for cascading objects. | |
int | getTraversalStrategy() Returns the strategy for traversing traversable objects. | |
Constraint[] | getConstraints() Returns all constraints of this element. |
Implementation of the Visitor design pattern.
Calls {@link ValidationVisitorInterface::visit} and then forwards the accept()-call to all property metadata instances.
Returns all constraints for a given validation group.
Returns the strategy for cascading objects.
Returns the strategy for traversing traversable objects.
Returns all constraints of this element.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Validator/Mapping/MetadataInterface.html