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
Mostrar archivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$metadataFactory
$validatorFactory

Public Methods

Method 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}

Protected Methods

Method Description
validateGraph ( $root, Closure $walk, $groups = null )

Method Details

__construct() public method

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 method

{@inheritDoc}
public getMetadataFactory ( )

validate() public method

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

validateGraph() protected method

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

validateProperty() public method

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

validatePropertyValue() public method

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

validateValue() public method

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

Property Details

$metadataFactory protected_oe property

protected $metadataFactory

$validatorFactory protected_oe property

protected $validatorFactory