W3cubDocs

/Symfony 2.7

Symfony\Component\PropertyAccess\PropertyPathIterator

class PropertyPathIterator extends ArrayIterator implements PropertyPathIteratorInterface

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

Methods

__construct(PropertyPathInterface $path)

Constructor.

Boolean isIndex()

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

Boolean isProperty()

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

Details

public __construct(PropertyPathInterface $path)

Constructor.

Parameters

PropertyPathInterface $path The property path to traverse

public Boolean isIndex()

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

Return Value

Boolean

public Boolean isProperty()

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

Return Value

Boolean

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/PropertyAccess/PropertyPathIterator.html