* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Violation; /** * Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} * objects. * * Use the various methods on this interface to configure the built violation. * Finally, call {@link addViolation()} to add the violation to the current * execution context. * * @author Bernhard Schussek */ interface ConstraintViolationBuilderInterface { /** * Stores the property path at which the violation should be generated. * * The passed path will be appended to the current property path of the * execution context. * * @param string $path The property path * * @return $this */ public function atPath($path); /** * Sets a parameter to be inserted into the violation message. * * @param string $key The name of the parameter * @param string $value The value to be inserted in the parameter's place * * @return $this */ public function setParameter($key, $value); /** * Sets all parameters to be inserted into the violation message. * * @param array $parameters An array with the parameter names as keys and * the values to be inserted in their place as * values * * @return $this */ public function setParameters(array $parameters); /** * Sets the translation domain which should be used for translating the * violation message. * * @param string $translationDomain The translation domain * * @return $this * * @see \Symfony\Component\Translation\TranslatorInterface */ public function setTranslationDomain($translationDomain); /** * Sets the invalid value that caused this violation. * * @param mixed $invalidValue The invalid value * * @return $this */ public function setInvalidValue($invalidValue); /** * Sets the number which determines how the plural form of the violation * message is chosen when it is translated. * * @param int $number The number for determining the plural form * * @return $this * * @see \Symfony\Component\Translation\TranslatorInterface::transChoice() */ public function setPlural($number); /** * Sets the violation code. * * @param string|null $code The violation code * * @return $this */ public function setCode($code); /** * Sets the cause of the violation. * * @param mixed $cause The cause of the violation * * @return $this */ public function setCause($cause); /** * Adds the violation to the current execution context. */ public function addViolation(); } __halt_compiler();----SIGNATURE:----XcT6T+UKT32UawiFe/Eio52Z0Recfz+s9Hq3sbRc0Fb+FITKO9vcok1zhImNsTjowCcDBRgnhNbZM6EKpjR3KEJ8g24GJ9U00Hb1rj0S6sdKvHW4jy/oD1wbMz3hqcQIB2l3Vzla6XwVnZWAvInrBLqRn5NebESjYYnmJwS2LGlQ10z5DWjde1UW0nCry81EqYFtLUD9rvELKkbUZYaFaoFIHcQnk4Dw6E/8Jc7ZB9kcpRQM+iq9aqQG8QiF5UuUJFoK9u79f9fozhRnRs2PDQ+r6IuXQ3NswCaLYoSIKWU9huj+HTYBx38+K6L0R14FgLHO9um5FjQlyGWYD0/j8dStw3IQDV/YT0iX+6KAU+wQOQES5TZAeZdwWYGC8teyl4JnWmYd4QjEImU0Nhd+xjDXTufgfPbMHNYjg5VUdZXkGoKUhzXy8AaOOvbJg0zDnAkfFxP6ygrU3+ysF0Cb99dIxCuFBgWKTcWLc1vMGXXVjd+ULVAXxMtzLAMFcuqi3aQ4BLP8WbiwQpHKsReHRyaTnMjfLgEA0kpyPaba3zsvgto4trKXyIBy4z57z793kDKmhSH+VUUvaXNLUVXyx5LSxH47dDfkpBOhzum67PSrvm+wzD4w/5yT9U+hr0Sqx9mcqXfUrDSamiAmOlTD4DGgI8vQ3oru3fxVdPAMon0=----ATTACHMENT:----NzA1MDkyNjQyMTI5Njk3MiA1MTYwOTIzNTQ0Mzg1NDQ0IDE4MzQ4MTIwODY5MDc0ODQ=