* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Validator; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintViolationListInterface; /** * A validator in a specific execution context. * * @author Bernhard Schussek */ interface ContextualValidatorInterface { /** * Appends the given path to the property path of the context. * * If called multiple times, the path will always be reset to the context's * original path with the given path appended to it. * * @param string $path The path to append * * @return $this */ public function atPath($path); /** * Validates a value against a constraint or a list of constraints. * * If no constraint is passed, the constraint * {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. * * @param mixed $value The value to validate * @param Constraint|Constraint[] $constraints The constraint(s) to validate * against * @param array|null $groups The validation groups to * validate. If none is given, * "Default" is assumed * * @return $this */ public function validate($value, $constraints = null, $groups = null); /** * Validates a property of an object against the constraints specified * for this property. * * @param object $object The object * @param string $propertyName The name of the validated property * @param array|null $groups The validation groups to validate. If * none is given, "Default" is assumed * * @return $this */ public function validateProperty($object, $propertyName, $groups = null); /** * Validates a value against the constraints specified for an object's * property. * * @param object|string $objectOrClass The object or its class name * @param string $propertyName The name of the property * @param mixed $value The value to validate against the * property's constraints * @param array|null $groups The validation groups to validate. If * none is given, "Default" is assumed * * @return $this */ public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null); /** * Returns the violations that have been generated so far in the context * of the validator. * * @return ConstraintViolationListInterface The constraint violations */ public function getViolations(); } __halt_compiler();----SIGNATURE:----mQ7X2e1I57zew7iSc5y9PRlVeyC7aTuYYXB13/KB+TDrzYA1FDvHEM9/iNkeG5bDRAoB7kpVEXpRH7sxQB776RO33AnM8CfaGRvENXtX1aAC9GQ3CSZQFRQ1J6i59f8v05V9PShILEXuxwdhf8aHCLkIDcVWhqM2mjFaSnXp1+cV/+dr7tR6oFL8KKvVifgG3VPSyrtALVBOguGPQ251NguNg+UKTYl5t8sgUbt1ztzsZUxe4hTAOlKJitCz3V4afsQUFljVrt9avJkAUqWT3hqZiNPuG4yuvPyFHANDULMa+6sMJswo/ZdpvWLUnwoGslSksw3n54wXedGx9WhRyr1BxkM+zRqLvavqEuBJHnJB2yPvj+r46cm9k3hPAQ93qKuud9NBANmRdORG9qNXI+InxzYkMdBQWGnFW2qEItCnWMMGAi3C0rscoqKwRWiWC/ZS3/l/ItdwylWYYqXOe7+06aM1wL6CXHbtqjlpGjlgh60028nCrD6LjTjME5Ef7R22jCkSVe9bnHwKDMNzjDOSoi1qL/8Ig3Tslcq4h2DHOMPZHfzyGYAD67M3v+Ls2xvFem7LHKJRCcKGGVM+fftBp1Y86Uaq8VHzwQJ4tE4+flcSACHaKH/DOzjdoxYEfvD1CY8X0LemN/jfdGZfVq2FOYiVTFQYD79PngRkyEk=----ATTACHMENT:----MjQwNjY2NDA2NzA5NTI4NiAxMTQ0MzQ3MzkxMDY5NzQ1IDYzNjkyNDEzMjgwOTMxMzQ=