Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Node
AttributeNode::__toString
Method of the class: AttributeNode{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AttributeNode = new AttributeNode(); $AttributeNode->__toString(): string;
AttributeNode::__toString() AttributeNode:: toString code WC 10.4.3
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);
}