X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fvalidator%2FConstraintViolationInterface.php;h=5ac25cf9ba53a8887c6ad80ff9200ecf22285711;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=11028fe0ab1aa0a4ca1a87fb740f7dafb6893675;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/validator/ConstraintViolationInterface.php b/vendor/symfony/validator/ConstraintViolationInterface.php index 11028fe0a..5ac25cf9b 100644 --- a/vendor/symfony/validator/ConstraintViolationInterface.php +++ b/vendor/symfony/validator/ConstraintViolationInterface.php @@ -19,11 +19,9 @@ namespace Symfony\Component\Validator; * element in the validation graph and the root element that was originally * passed to the validator. For example, take the following graph: * - *
- * (Person)---(firstName: string)
- *      \
- *   (address: Address)---(street: string)
- * 
+ * (Person)---(firstName: string) + * \ + * (address: Address)---(street: string) * * If the Person object is validated and validation fails for the * "firstName" property, the generated violation has the Person @@ -46,7 +44,7 @@ interface ConstraintViolationInterface * Returns the raw violation message. * * The raw violation message contains placeholders for the parameters - * returned by {@link getMessageParameters}. Typically you'll pass the + * returned by {@link getParameters}. Typically you'll pass the * message template and parameters to a translation engine. * * @return string The raw violation message @@ -56,13 +54,12 @@ interface ConstraintViolationInterface /** * Returns the parameters to be inserted into the raw violation message. * - * @return array A possibly empty list of parameters indexed by the names - * that appear in the message template. + * @return array a possibly empty list of parameters indexed by the names + * that appear in the message template * * @see getMessageTemplate() - * @deprecated since version 2.7, to be replaced by getParameters() in 3.0. */ - public function getMessageParameters(); + public function getParameters(); /** * Returns a number for pluralizing the violation message. @@ -79,10 +76,8 @@ interface ConstraintViolationInterface * pluralization form (in this case "choices"). * * @return int|null The number to use to pluralize of the message - * - * @deprecated since version 2.7, to be replaced by getPlural() in 3.0. */ - public function getMessagePluralization(); + public function getPlural(); /** * Returns the root element of the validation. @@ -111,8 +106,8 @@ interface ConstraintViolationInterface /** * Returns the value that caused the violation. * - * @return mixed The invalid value that caused the validated constraint to - * fail. + * @return mixed the invalid value that caused the validated constraint to + * fail */ public function getInvalidValue();