PropertyPathIterator
extends ArrayIterator
in package
implements
PropertyPathIteratorInterface
Traverses a property path and provides additional methods to find out information about the current element.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $path : mixed
- __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
Return values
mixed —isIndex()
Returns whether the current element in the property path is an array index.
public
isIndex() : bool
Return values
bool —isProperty()
Returns whether the current element in the property path is a property name.
public
isProperty() : bool