Symfony\Component\PropertyAccess\PropertyPathInterface
A sequence of property names or array indices.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
interface PropertyPathInterface
extends Traversable
{
- // methods
- public string __toString()
- public integer getLength()
- public PropertyPath getParent()
- public array getElements()
- public string getElement()
- public Boolean isProperty()
- public Boolean isIndex()
Hierarchy
Extends
Implemented by
Methods
public
- __toString() — Returns the string representation of the property path
- getElement() — Returns the element at the given index in the property path
- getElements() — Returns the elements of the property path as array
- getLength() — Returns the length of the property path, i.e. the number of elements.
- getParent() — Returns the parent property path.
- isIndex() — Returns whether the element at the given index is an array index
- isProperty() — Returns whether the element at the given index is a property