AbstractNode.php
2 years ago
AttributeNode.php
2 years ago
ClassNode.php
2 years ago
CombinedSelectorNode.php
2 years ago
ElementNode.php
2 years ago
FunctionNode.php
2 years ago
HashNode.php
2 years ago
NegationNode.php
2 years ago
NodeInterface.php
2 years ago
PseudoNode.php
2 years ago
SelectorNode.php
2 years ago
Specificity.php
2 years ago
index.php
2 years ago
AbstractNode.php
15 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\CssSelector\Node; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | abstract class AbstractNode implements NodeInterface |
| 5 | { |
| 6 | private $nodeName; |
| 7 | public function getNodeName() : string |
| 8 | { |
| 9 | if (null === $this->nodeName) { |
| 10 | $this->nodeName = \preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); |
| 11 | } |
| 12 | return $this->nodeName; |
| 13 | } |
| 14 | } |
| 15 |