PHP Class Symfony\Component\Validator\ExecutionContext

This class is immutable by design. It is used by the GraphWalker to initialize validation of different items and keep track of the violations.
Author: Fabien Potencier ([email protected])
Author: Bernhard Schussek ([email protected])
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$class
$graphWalker
$group
$metadataFactory
$property
$propertyPath
$root
$violations

Public Methods

Method Description
__clone ( )
__construct ( $root, Symfony\Component\Validator\GraphWalker $graphWalker, Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface $metadataFactory )
addViolation ( $message, array $params, $invalidValue )
getCurrentClass ( )
getCurrentProperty ( )
getGraphWalker ( ) : Symfony\Component\Validator\GraphWalker
getGroup ( )
getMetadataFactory ( ) : Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface
getPropertyPath ( )
getRoot ( )
getViolations ( ) : ConstraintViolationList
setCurrentClass ( $class )
setCurrentProperty ( $property )
setGroup ( $group )
setPropertyPath ( $propertyPath )

Method Details

__clone() public method

public __clone ( )

__construct() public method

public __construct ( $root, Symfony\Component\Validator\GraphWalker $graphWalker, Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface $metadataFactory )
$graphWalker Symfony\Component\Validator\GraphWalker
$metadataFactory Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface

addViolation() public method

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

getCurrentClass() public method

public getCurrentClass ( )

getCurrentProperty() public method

public getCurrentProperty ( )

getGraphWalker() public method

public getGraphWalker ( ) : Symfony\Component\Validator\GraphWalker
return Symfony\Component\Validator\GraphWalker

getGroup() public method

public getGroup ( )

getMetadataFactory() public method

public getMetadataFactory ( ) : Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface
return Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface

getPropertyPath() public method

public getPropertyPath ( )

getRoot() public method

public getRoot ( )

getViolations() public method

public getViolations ( ) : ConstraintViolationList
return ConstraintViolationList

setCurrentClass() public method

public setCurrentClass ( $class )

setCurrentProperty() public method

public setCurrentProperty ( $property )

setGroup() public method

public setGroup ( $group )

setPropertyPath() public method

public setPropertyPath ( $propertyPath )

Property Details

$class protected property

protected $class

$graphWalker protected property

protected $graphWalker

$group protected property

protected $group

$metadataFactory protected property

protected $metadataFactory

$property protected property

protected $property

$propertyPath protected property

protected $propertyPath

$root protected property

protected $root

$violations protected property

protected $violations