abstract class ElementMetadata extends GenericMetadata
Contains the metadata of a structural element.
Constraint[] | $constraints | |
array | $constraintsByGroup | |
int | $cascadingStrategy | The strategy for cascading objects. |
int | $traversalStrategy | The strategy for traversing traversable objects. |
string[] | __sleep() Returns the names of the properties that should be serialized. | from GenericMetadata |
__clone() Clones this object. | from GenericMetadata | |
GenericMetadata | addConstraint(Constraint $constraint) Adds a constraint. | from GenericMetadata |
GenericMetadata | addConstraints(array $constraints) Adds an list of constraints. | from GenericMetadata |
Constraint[] | getConstraints() Returns all constraints of this element. | from GenericMetadata |
bool | hasConstraints() Returns whether this element has any constraints. | from GenericMetadata |
Constraint[] | findConstraints(string $group) Returns all constraints for a given validation group. | from GenericMetadata |
int | getCascadingStrategy() Returns the strategy for cascading objects. | from GenericMetadata |
int | getTraversalStrategy() Returns the strategy for traversing traversable objects. | from GenericMetadata |
accept(ValidationVisitorInterface $visitor, mixed $value, string|string[] $group, string $propertyPath) Exists for compatibility with the deprecated {@link Symfony\Component\Validator\MetadataInterface}. | from GenericMetadata | |
__construct() |
Returns the names of the properties that should be serialized.
Clones this object.
Adds a constraint.
If the constraint {@link Valid} is added, the cascading strategy will be changed to {@link CascadingStrategy::CASCADE}. Depending on the properties $traverse and $deep of that constraint, the traversal strategy will be set to one of the following:
Adds an list of constraints.
Returns all constraints of this element.
Returns whether this element has any constraints.
Returns all constraints for a given validation group.
Returns the strategy for cascading objects.
Returns the strategy for traversing traversable objects.
Exists for compatibility with the deprecated {@link Symfony\Component\Validator\MetadataInterface}.
Should not be used.
Implemented for backward compatibility with Symfony < 2.5.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Validator/Mapping/ElementMetadata.html