MetadataInterface
in
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.
Tags
Table of Contents
Methods
- findConstraints() : array<string|int, Constraint>
- Returns all constraints for a given validation group.
- getCascadingStrategy() : int
- Returns the strategy for cascading objects.
- getConstraints() : array<string|int, Constraint>
- Returns all constraints of this element.
- getTraversalStrategy() : int
- Returns the strategy for traversing traversable objects.
Methods
findConstraints()
Returns all constraints for a given validation group.
public
findConstraints(string $group) : array<string|int, Constraint>
Parameters
- $group : string
-
The validation group
Return values
array<string|int, Constraint>getCascadingStrategy()
Returns the strategy for cascading objects.
public
getCascadingStrategy() : int
Tags
Return values
intgetConstraints()
Returns all constraints of this element.
public
getConstraints() : array<string|int, Constraint>
Return values
array<string|int, Constraint>getTraversalStrategy()
Returns the strategy for traversing traversable objects.
public
getTraversalStrategy() : int