Class

Symfony\Component\Validator\GlobalExecutionContext

class GlobalExecutionContext

Stores the node-independent information of a validation run.

This class is immutable by design, except for violation tracking.

Methods

__construct($root, GraphWalker $graphWalker, ClassMetadataFactoryInterface $metadataFactory)

__clone()

addViolation(ConstraintViolation $violation)

ConstraintViolationList getViolations()

getRoot()

GraphWalker getGraphWalker()

ClassMetadataFactoryInterface getMetadataFactory()

Details

at line 30
public __construct($root, GraphWalker $graphWalker, ClassMetadataFactoryInterface $metadataFactory)

Parameters

$root
GraphWalker $graphWalker
ClassMetadataFactoryInterface $metadataFactory

at line 38
public __clone()

at line 43
public addViolation(ConstraintViolation $violation)

Parameters

ConstraintViolation $violation

at line 51
public ConstraintViolationList getViolations()

at line 56
public getRoot()

at line 64
public GraphWalker getGraphWalker()

Return Value

GraphWalker

at line 72
public ClassMetadataFactoryInterface getMetadataFactory()