api/symfony/Component/Validator/ConstraintViolation.yaml

127 lines
3.1 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: ConstraintViolation
class_comment: '# * Default implementation of {@ConstraintViolationInterface}.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>'
dependencies: []
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: message
- name: messageTemplate
- name: parameters
- name: root
- name: propertyPath
- name: invalidValue
- name: plural
default: 'null'
- name: code
default: 'null'
- name: constraint
default: 'null'
- name: cause
default: 'null'
comment: '# * Default implementation of {@ConstraintViolationInterface}.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# */
# class ConstraintViolation implements ConstraintViolationInterface
# {
# /**
# * Creates a new constraint violation.
# *
# * @param string|\Stringable $message The violation message as a string
or a stringable object
# * @param string|null $messageTemplate The raw violation message
# * @param array $parameters The parameters to substitute in
the
# * raw violation message
# * @param mixed $root The value originally passed to
the
# * validator
# * @param string|null $propertyPath The property path from the root
# * value to the invalid value
# * @param mixed $invalidValue The invalid value that caused this
# * violation
# * @param int|null $plural The number for determining the
plural
# * form when translating the message
# * @param string|null $code The error code of the violation
# * @param Constraint|null $constraint The constraint whose validation
# * caused the violation
# * @param mixed $cause The cause of the violation'
- name: __toString
visibility: public
parameters: []
comment: null
- name: getMessageTemplate
visibility: public
parameters: []
comment: null
- name: getParameters
visibility: public
parameters: []
comment: null
- name: getPlural
visibility: public
parameters: []
comment: null
- name: getMessage
visibility: public
parameters: []
comment: null
- name: getRoot
visibility: public
parameters: []
comment: null
- name: getPropertyPath
visibility: public
parameters: []
comment: null
- name: getInvalidValue
visibility: public
parameters: []
comment: null
- name: getConstraint
visibility: public
parameters: []
comment: '# * Returns the constraint whose validation caused the violation.'
- name: getCause
visibility: public
parameters: []
comment: '# * Returns the cause of the violation.'
- name: getCode
visibility: public
parameters: []
comment: null
traits: []
interfaces:
- ConstraintViolationInterface