12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace Symfony\Component\PropertyAccess;
- class PropertyPathIterator extends \ArrayIterator implements PropertyPathIteratorInterface
- {
- protected $path;
- public function __construct(PropertyPathInterface $path)
- {
- parent::__construct($path->getElements());
- $this->path = $path;
- }
-
- public function isIndex()
- {
- return $this->path->isIndex($this->key());
- }
-
- public function isProperty()
- {
- return $this->path->isProperty($this->key());
- }
- }
|