public function ExpressionValidator::__construct in Plug 7
Parameters
PropertyAccessorInterface|null $propertyAccessor Optional as of Symfony 2.5:
Throws
UnexpectedTypeException If the property accessor is invalid
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ ExpressionValidator.php, line 45
Class
- ExpressionValidator
- @author Fabien Potencier <fabien@symfony.com> @author Bernhard Schussek <bschussek@symfony.com>
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __construct($propertyAccessor = null) {
if (null !== $propertyAccessor && !$propertyAccessor instanceof PropertyAccessorInterface) {
throw new UnexpectedTypeException($propertyAccessor, 'null or \\Symfony\\Component\\PropertyAccess\\PropertyAccessorInterface');
}
$this->propertyAccessor = $propertyAccessor;
}