Merge pull request #4036 from dokuwiki/issue4033
[dokuwiki.git] / _test / vendor / symfony / css-selector / Node / AbstractNode.php
blob1306aeacb95e358c55265cbd953813e502ebb93a
1 <?php
3 /*
4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\CssSelector\Node;
14 /**
15 * Abstract base node class.
17 * This component is a port of the Python cssselect library,
18 * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
20 * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
22 * @internal
24 abstract class AbstractNode implements NodeInterface
26 /**
27 * @var string
29 private $nodeName;
31 public function getNodeName(): string
33 if (null === $this->nodeName) {
34 $this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class);
37 return $this->nodeName;