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])
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Свойство Type Description
$class
$graphWalker
$group
$metadataFactory
$property
$propertyPath
$root
$violations

Méthodes publiques

Méthode 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 méthode

public __clone ( )

__construct() public méthode

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 méthode

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

getCurrentClass() public méthode

public getCurrentClass ( )

getCurrentProperty() public méthode

public getCurrentProperty ( )

getGraphWalker() public méthode

public getGraphWalker ( ) : Symfony\Component\Validator\GraphWalker
Résultat Symfony\Component\Validator\GraphWalker

getGroup() public méthode

public getGroup ( )

getMetadataFactory() public méthode

public getMetadataFactory ( ) : Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface
Résultat Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface

getPropertyPath() public méthode

public getPropertyPath ( )

getRoot() public méthode

public getRoot ( )

getViolations() public méthode

public getViolations ( ) : ConstraintViolationList
Résultat ConstraintViolationList

setCurrentClass() public méthode

public setCurrentClass ( $class )

setCurrentProperty() public méthode

public setCurrentProperty ( $property )

setGroup() public méthode

public setGroup ( $group )

setPropertyPath() public méthode

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