Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Node
AbstractNode{}└─ NodeInterface
Abstract base node class.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
No Hooks.
Usage
$AbstractNode = new AbstractNode(); // use class methods
Methods
- public getNodeName()
AbstractNode{} AbstractNode{} code WC 10.4.3
abstract class AbstractNode implements NodeInterface
{
/**
* @var string
*/
private $nodeName;
public function getNodeName(): string
{
if (null === $this->nodeName) {
$this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class);
}
return $this->nodeName;
}
}