PHP Class Symfony\Component\Validator\Validator

This service can be used to validate objects, properties and raw values against constraints.
Author: Fabien Potencier ([email protected])
Author: Bernhard Schussek ([email protected])
Inheritance: implements Symfony\Component\Validator\ValidatorInterface
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Свойство Type Description
$metadataFactory
$validatorFactory

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface $metadataFactory, Symfony\Component\Validator\ConstraintValidatorFactoryInterface $validatorFactory )
getMetadataFactory ( ) {@inheritDoc}
validate ( $object, $groups = null ) {@inheritDoc}
validateProperty ( $object, $property, $groups = null ) {@inheritDoc}
validatePropertyValue ( $class, $property, $value, $groups = null ) {@inheritDoc}
validateValue ( $value, Constraint $constraint, $groups = null ) {@inheritDoc}

Méthodes protégées

Méthode Description
validateGraph ( $root, Closure $walk, $groups = null )

Method Details

__construct() public méthode

public __construct ( Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface $metadataFactory, Symfony\Component\Validator\ConstraintValidatorFactoryInterface $validatorFactory )
$metadataFactory Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface
$validatorFactory Symfony\Component\Validator\ConstraintValidatorFactoryInterface

getMetadataFactory() public méthode

{@inheritDoc}
public getMetadataFactory ( )

validate() public méthode

{@inheritDoc}
public validate ( $object, $groups = null )

validateGraph() protected méthode

protected validateGraph ( $root, Closure $walk, $groups = null )
$walk Closure

validateProperty() public méthode

{@inheritDoc}
public validateProperty ( $object, $property, $groups = null )

validatePropertyValue() public méthode

{@inheritDoc}
public validatePropertyValue ( $class, $property, $value, $groups = null )

validateValue() public méthode

{@inheritDoc}
public validateValue ( $value, Constraint $constraint, $groups = null )
$constraint Constraint

Property Details

$metadataFactory protected_oe property

protected $metadataFactory

$validatorFactory protected_oe property

protected $validatorFactory