ConstraintViolationBuilderInterface::addViolation()
  • References/PHP/Symfony/Component/Validator/Violation

addViolation() Adds the violation to the current execution context.

2025-01-10 15:47:30
ConstraintViolationBuilderInterface::setParameters()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setParameters(array $parameters) Sets all parameters to be inserted into the violation message. Parameters array $parameters An array with the parameter names as keys and the values to be inserted in their place as values Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilderInterface::setPlural()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setPlural(int $number) Sets the number which determines how the plural form of the violation message is chosen when it is translated. Parameters int $number The number for determining the plural form Return Value ConstraintViolationBuilderInterface This builder See also \Symfony\Component\Translation\TranslatorInterface::transChoice()

2025-01-10 15:47:30
ConstraintViolationBuilderInterface::setInvalidValue()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setInvalidValue(mixed $invalidValue) Sets the invalid value that caused this violation. Parameters mixed $invalidValue The invalid value Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilder::setTranslationDomain()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setTranslationDomain(string $translationDomain) Sets the translation domain which should be used for translating the violation message. Parameters string $translationDomain The translation domain Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilder::setCode()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setCode(string|null $code) Sets the violation code. Parameters string|null $code The violation code Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
LegacyConstraintViolationBuilder deprecated
  • References/PHP/Symfony/Component/Validator/Violation

class LegacyConstraintViolationBuilder implements

2025-01-10 15:47:30
ConstraintViolationBuilder::setParameter()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setParameter(string $key, string $value) Sets a parameter to be inserted into the violation message. Parameters string $key The name of the parameter string $value The value to be inserted in the parameter's place Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilderInterface::setParameter()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface setParameter(string $key, string $value) Sets a parameter to be inserted into the violation message. Parameters string $key The name of the parameter string $value The value to be inserted in the parameter's place Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilderInterface
  • References/PHP/Symfony/Component/Validator/Violation

interface ConstraintViolationBuilderInterface Builds {@link \Symfony\Component\Validator\Const

2025-01-10 15:47:30