Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\Node

AttributeNode::__toString │ public │ WC 1.0

Метод класса: AttributeNode{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$AttributeNode = new AttributeNode();
$AttributeNode->__toString(): string;

Код AttributeNode::__toString() WC 11.2.2

public function __toString(): string
{
    $attribute = $this->namespace ? $this->namespace.'|'.$this->attribute : $this->attribute;

    return 'exists' === $this->operator
        ? sprintf('%s[%s[%s]]', $this->getNodeName(), $this->selector, $attribute)
        : sprintf("%s[%s[%s %s '%s']]", $this->getNodeName(), $this->selector, $attribute, $this->operator, $this->value);
}