PHP Class Lemon\RestBundle\Object\Validator

Show file Open project: stanlemon/rest-bundle Class Usage Examples

Protected Properties

Property Type Description
$validator Symfony\Component\Validator\ValidatorInterface\ValidatorInterface | Symfony\Component\Validator\Validaotr\ValidatorInterface\ValidatorInterface This interface changed from Symfony 2.3 to 2.5, but we only rely upon the first parameter - which is the same between version.

Public Methods

Method Description
__construct ( Symfony\Component\Validator\ValidatorInterface\ValidatorInterface | Symfony\Component\Validator\Validaotr\ValidatorInterface\ValidatorInterface $validator )
validate ( object $object )

Method Details

__construct() public method

public __construct ( Symfony\Component\Validator\ValidatorInterface\ValidatorInterface | Symfony\Component\Validator\Validaotr\ValidatorInterface\ValidatorInterface $validator )
$validator Symfony\Component\Validator\ValidatorInterface\ValidatorInterface | Symfony\Component\Validator\Validaotr\ValidatorInterface\ValidatorInterface

validate() public method

public validate ( object $object )
$object object

Property Details

$validator protected property

This interface changed from Symfony 2.3 to 2.5, but we only rely upon the first parameter - which is the same between version.
protected Symfony\Component\Validator\ValidatorInterface\ValidatorInterface|Symfony\Component\Validator\Validaotr\ValidatorInterface\ValidatorInterface $validator
return Symfony\Component\Validator\ValidatorInterface\ValidatorInterface | Symfony\Component\Validator\Validaotr\ValidatorInterface\ValidatorInterface