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])
Mostra 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_oe property

protected $class

$graphWalker protected_oe property

protected $graphWalker

$group protected_oe property

protected $group

$metadataFactory protected_oe property

protected $metadataFactory

$property protected_oe property

protected $property

$propertyPath protected_oe property

protected $propertyPath

$root protected_oe property

protected $root

$violations protected_oe property

protected $violations