GlobalExecutionContextInterface deprecated
interface GlobalExecutionContextInterface
deprecated
Stores the node-independent state of a validation run.
When the validator validates a graph of objects, it uses two classes to store the state during the validation:
- For each node in the validation graph (objects, properties, getters) the validator creates an instance of {@link ExecutionContextInterface} that stores the information about that node.
- One single GlobalExecutionContextInterface stores the state that is independent of the current node.
Methods
Returns the violations generated by the validator so far.
Returns the value at which validation was started in the object graph.
Returns the visitor instance used to validate the object graph nodes.
Returns the factory for constraint validators.
Returns the factory for validation metadata objects.
Details
at line line 40
ConstraintViolationListInterface
getViolations()
Returns the violations generated by the validator so far.
at line line 49
mixed
getRoot()
Returns the value at which validation was started in the object graph.
at line line 56
ValidationVisitorInterface
getVisitor()
Returns the visitor instance used to validate the object graph nodes.
at line line 63
ConstraintValidatorFactoryInterface
getValidatorFactory()
Returns the factory for constraint validators.
at line line 70
MetadataFactoryInterface
getMetadataFactory()
Returns the factory for validation metadata objects.