Default implementation of {@link PropertyPathInterface}.
- author Bernhard Schussek
- implements \IteratorAggregate<int,string>
CloneableInstantiableIterable
- Implements
IteratorAggregate Stringable Symfony \Component \PropertyAccess \PropertyPathInterface Traversable
| Constants |
| public Symfony Character used for separating between plural and singular of an element. |
| Methods |
| public __construct(self|string $propertyPath) Constructs a property path from a string.
|
| public __toString() : string |
| public getElement(int $index) : string |
| public getElements() : array |
| public getIterator() : Symfony Returns a new iterator for this path. |
| public getLength() : int |
| public getParent() : ?Symfony |
| public isIndex(int $index) : bool |
| public isNullSafe(int $index) : bool |
| public isProperty(int $index) : bool |
| Properties |
| private array $elements = [] The elements of the property path.
|
| private array $isIndex = [] Contains a Boolean for each property in $elements denoting whether this element is an index. It is a property otherwise.
|
| private array $isNullSafe = [] Contains a Boolean for each property in $elements denoting whether this element is optional or not.
|
| private int $length The number of elements in the property path. |
| private string $pathAsString String representation of the path. |