api/symfony/Component/Validator/ConstraintViolationList.yaml
2024-09-26 02:03:21 -07:00

112 lines
2.7 KiB
YAML

name: ConstraintViolationList
class_comment: '# * Default implementation of {@ConstraintViolationListInterface}.
# *
# * @author Bernhard Schussek <bschussek@gmail.com>
# *
# * @implements \IteratorAggregate<int, ConstraintViolationInterface>'
dependencies:
- name: OutOfBoundsException
type: class
source: Symfony\Component\Validator\Exception\OutOfBoundsException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: violations
default: '[]'
comment: "# * Default implementation of {@ConstraintViolationListInterface}.\n#\
\ *\n# * @author Bernhard Schussek <bschussek@gmail.com>\n# *\n# * @implements\
\ \\IteratorAggregate<int, ConstraintViolationInterface>\n# */\n# class ConstraintViolationList\
\ implements \\IteratorAggregate, ConstraintViolationListInterface\n# {\n# /**\n\
# * @var list<ConstraintViolationInterface>\n# */\n# private array $violations\
\ = [];\n# \n# /**\n# * Creates a new constraint violation list.\n# *\n# * @param\
\ iterable<mixed, ConstraintViolationInterface> $violations The constraint violations\
\ to add to the list"
- name: createFromMessage
visibility: public
parameters:
- name: message
comment: null
- name: __toString
visibility: public
parameters: []
comment: null
- name: add
visibility: public
parameters:
- name: violation
comment: null
- name: addAll
visibility: public
parameters:
- name: otherList
comment: null
- name: get
visibility: public
parameters:
- name: offset
comment: null
- name: has
visibility: public
parameters:
- name: offset
comment: null
- name: set
visibility: public
parameters:
- name: offset
- name: violation
comment: null
- name: remove
visibility: public
parameters:
- name: offset
comment: null
- name: getIterator
visibility: public
parameters: []
comment: '# * @return \ArrayIterator<int, ConstraintViolationInterface>'
- name: count
visibility: public
parameters: []
comment: null
- name: offsetExists
visibility: public
parameters:
- name: offset
comment: null
- name: offsetGet
visibility: public
parameters:
- name: offset
comment: null
- name: offsetSet
visibility: public
parameters:
- name: offset
- name: violation
comment: null
- name: offsetUnset
visibility: public
parameters:
- name: offset
comment: null
- name: findByCodes
visibility: public
parameters:
- name: codes
comment: '# * Creates iterator for errors with specific codes.
# *
# * @param string|string[] $codes The codes to find'
traits:
- Symfony\Component\Validator\Exception\OutOfBoundsException
interfaces:
- \IteratorAggregate
- \IteratorAggregate