PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.0.13
WindPress – Tailwind CSS integration for WordPress v3.0.13
3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 All 143 releases
windpress / vendor / symfony / property-access / PropertyPathIterator.php

PropertyPathIterator.php in WindPress – Tailwind CSS integration for WordPress 3.0.13, at vendor/symfony/property-access/PropertyPathIterator.php

44 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 namespace WindPressDeps\Symfony\Component\PropertyAccess;
12
13 /**
14 * Traverses a property path and provides additional methods to find out
15 * information about the current element.
16 *
17 * @author Bernhard Schussek <bschussek@gmail.com>
18 *
19 * @extends \ArrayIterator<int, string>
20 */
21 class PropertyPathIterator extends \ArrayIterator implements PropertyPathIteratorInterface
22 {
23 protected $path;
24 public function __construct(PropertyPathInterface $path)
25 {
26 parent::__construct($path->getElements());
27 $this->path = $path;
28 }
29 /**
30 * {@inheritdoc}
31 */
32 public function isIndex()
33 {
34 return $this->path->isIndex($this->key());
35 }
36 /**
37 * {@inheritdoc}
38 */
39 public function isProperty()
40 {
41 return $this->path->isProperty($this->key());
42 }
43 }
44