class PropertyPathIterator extends ArrayIterator implements PropertyPathIteratorInterface

Traverses a property path and provides additional methods to find out information about the current element.

Properties

protected $path

Methods

__construct(PropertyPathInterface $path)

No description

bool
isIndex()

Returns whether the current element in the property path is an array index.

bool
isProperty()

Returns whether the current element in the property path is a property name.

Details

at line 27
__construct(PropertyPathInterface $path)

Parameters

PropertyPathInterface $path The property path to traverse

at line 37
bool isIndex()

Returns whether the current element in the property path is an array index.

Return Value

bool

at line 45
bool isProperty()

Returns whether the current element in the property path is a property name.

Return Value

bool