Class

Symfony\Component\Validator\ExecutionContext

class ExecutionContext

The central object representing a single validation process.

This object is used by the GraphWalker to initialize validation of different items and keep track of the violations.

Methods

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

__clone()

addViolation($message, array $params, $invalidValue)

ConstraintViolationList getViolations()

getRoot()

setPropertyPath($propertyPath)

getPropertyPath()

setCurrentClass($class)

getCurrentClass()

setCurrentProperty($property)

getCurrentProperty()

setGroup($group)

getGroup()

GraphWalker getGraphWalker()

ClassMetadataFactoryInterface getMetadataFactory()

Details

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

Parameters

$root
GraphWalker $graphWalker
ClassMetadataFactoryInterface $metadataFactory

at line 50
public __clone()

at line 58
public addViolation($message, array $params, $invalidValue)

Parameters

$message
array $params
$invalidValue

at line 74
public ConstraintViolationList getViolations()

at line 79
public getRoot()

at line 84
public setPropertyPath($propertyPath)

Parameters

$propertyPath

at line 89
public getPropertyPath()

at line 94
public setCurrentClass($class)

Parameters

$class

at line 99
public getCurrentClass()

at line 104
public setCurrentProperty($property)

Parameters

$property

at line 109
public getCurrentProperty()

at line 114
public setGroup($group)

Parameters

$group

at line 119
public getGroup()

at line 127
public GraphWalker getGraphWalker()

Return Value

GraphWalker

at line 135
public ClassMetadataFactoryInterface getMetadataFactory()