Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Node

AbstractNode{}abstractWC 1.0└─ 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

  1. public getNodeName()

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;
    }
}