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

XPathExpr::__constructpublicWC 1.0

Method of the class: XPathExpr{}

No Hooks.

Returns

null. Nothing (null).

Usage

$XPathExpr = new XPathExpr();
$XPathExpr->__construct( $path, $element, $condition, $starPrefix );
$path(string)
.
Default: ''
$element(string)
.
Default: `''`*
$condition(string)
.
Default: ''
$starPrefix(true|false)
.
Default: false

XPathExpr::__construct() code WC 10.7.0

public function __construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false)
{
    $this->path = $path;
    $this->element = $element;
    $this->condition = $condition;

    if ($starPrefix) {
        $this->addStarPrefix();
    }
}