* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Symfony\Component\Validator\Constraint; /** * Validates a given value. * * @author Bernhard Schussek * @version SVN: $Id: ValidatorInterface.php 138 2010-01-18 22:05:14Z flo $ */ interface ValidatorInterface { public function validate($object, $groups = null); public function validateProperty($object, $property, $groups = null); public function validatePropertyValue($class, $property, $value, $groups = null); public function validateValue($value, Constraint $constraint, $groups = null); }