RelativePath
class RelativePath extends PropertyPath
Constants
SINGULAR_SEPARATOR |
Character used for separating between plural and singular of an element. |
Methods
Returns the length of the property path, i.e. the number of elements.
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
No description
Details
at line line 31
__construct(FormInterface $root, PropertyPath|string $propertyPath)
in PropertyPath at line line 139
string
__toString()
Returns the string representation of the property path
in PropertyPath at line line 147
integer
getLength()
Returns the length of the property path, i.e. the number of elements.
in PropertyPath at line line 155
PropertyPath
getParent()
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.
in PropertyPath at line line 177
PropertyPathIteratorInterface
getIterator()
Returns a new iterator for this path
in PropertyPath at line line 185
array
getElements()
Returns the elements of the property path as array
in PropertyPath at line line 193
string
getElement(integer $index)
Returns the element at the given index in the property path
in PropertyPath at line line 205
Boolean
isProperty(integer $index)
Returns whether the element at the given index is a property
in PropertyPath at line line 217
Boolean
isIndex(integer $index)
Returns whether the element at the given index is an array index