interface PropertyPathInterface implements Traversable
A sequence of property names or array indices.
string | __toString() Returns the string representation of the property path. | |
int | getLength() Returns the length of the property path, i.e. | |
PropertyPath | getParent() Returns the parent property path. | |
array | getElements() Returns the elements of the property path as array. | |
string | getElement(int $index) Returns the element at the given index in the property path. | |
bool | isProperty(int $index) Returns whether the element at the given index is a property. | |
bool | isIndex(int $index) Returns whether the element at the given index is an array index. |
Returns the string representation of the property path.
Returns the length of the property path, i.e.
the number of elements.
Returns the parent property path.
The parent property path is the one that contains the same items as this one except for the last one.
If this property path only contains one item, null is returned.
Returns the elements of the property path as array.
Returns the element at the given index in the property path.
Returns whether the element at the given index is a property.
Returns whether the element at the given index is an array index.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/PropertyAccess/PropertyPathInterface.html