name: ConstraintViolationList class_comment: '# * Default implementation of {@ConstraintViolationListInterface}. # * # * @author Bernhard Schussek # * # * @implements \IteratorAggregate' 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 \n# *\n# * @implements\ \ \\IteratorAggregate\n# */\n# class ConstraintViolationList\ \ implements \\IteratorAggregate, ConstraintViolationListInterface\n# {\n# /**\n\ # * @var list\n# */\n# private array $violations\ \ = [];\n# \n# /**\n# * Creates a new constraint violation list.\n# *\n# * @param\ \ iterable $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' - 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