Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath

XPathExpr::__toStringpublicWC 1.0

Method of the class: XPathExpr{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

XPathExpr::__toString() code WC 10.7.0

public function __toString(): string
{
    $path = $this->path.$this->element;
    $condition = null === $this->condition || '' === $this->condition ? '' : '['.$this->condition.']';

    return $path.$condition;
}