Symfony\Component\Form\Extension\Validator\ViolationMapper\ViolationPath
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class ViolationPath
implements
IteratorAggregate,PropertyPathInterface
{
- // members
- private array $elements;
- private array $isIndex;
- private array $mapsForm;
- private string $pathAsString;
- private integer $length;
- // methods
- public void __construct()
- public void __toString()
- public void getLength()
- public void getParent()
- public void getElements()
- public void getElement()
- public void isProperty()
- public void isIndex()
- public Boolean mapsForm()
- public ViolationPathIterator getIterator()
- private void buildString()
Hierarchy
Members
private
- $elements — array
- $isIndex — array
- $length — integer
- $mapsForm — array
- $pathAsString — string
Methods
private
- buildString() — Builds the string representation from the elements.
public
- __construct() — Creates a new violation path from a string.
- __toString() — {@inheritdoc}
- getElement() — {@inheritdoc}
- getElements() — {@inheritdoc}
- getIterator() — Returns a new iterator for this path
- getLength() — {@inheritdoc}
- getParent() — {@inheritdoc}
- isIndex() — {@inheritdoc}
- isProperty() — {@inheritdoc}
- mapsForm() — Returns whether an element maps directly to a form.