PropertyPathIterator
extends ArrayIterator
in package
implements
PropertyPathIteratorInterface
Traverses a property path and provides additional methods to find out information about the current element.
Tags
Table of Contents
Interfaces
Properties
- $path : mixed
Methods
- __construct() : mixed
- isIndex() : bool
- Returns whether the current element in the property path is an array index.
- isProperty() : bool
- Returns whether the current element in the property path is a property name.
Properties
$path
protected
mixed
$path
Methods
__construct()
public
__construct(PropertyPathInterface $path) : mixed
Parameters
- $path : PropertyPathInterface
isIndex()
Returns whether the current element in the property path is an array index.
public
isIndex() : bool
Return values
boolisProperty()
Returns whether the current element in the property path is a property name.
public
isProperty() : bool