PropertyPathIterator

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.

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

__construct(PropertyPathInterface $path)

Constructor.

Parameters

PropertyPathInterface $path The property path to traverse

bool isIndex()

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

Return Value

bool

bool isProperty()

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

Return Value

bool

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部