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

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

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

ConstraintViolationBuilderInterface setCause(mixed $cause) Sets the cause of the violation. Parameters mixed $cause The cause of the violation Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilder::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::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::atPath()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface atPath(string $path) 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. Parameters string $path The property path Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30
ConstraintViolationBuilderInterface::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 See also \Symfony\Component\Translation\TranslatorInterface

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

class ConstraintViolationBuilder implements

2025-01-10 15:47:30
ConstraintViolationBuilderInterface::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
ConstraintViolationBuilder::atPath()
  • References/PHP/Symfony/Component/Validator/Violation

ConstraintViolationBuilderInterface atPath(string $path) 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. Parameters string $path The property path Return Value ConstraintViolationBuilderInterface This builder

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

ConstraintViolationBuilderInterface setCause(mixed $cause) Sets the cause of the violation. Parameters mixed $cause The cause of the violation Return Value ConstraintViolationBuilderInterface This builder

2025-01-10 15:47:30