Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath
XPathExpr::__construct
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() 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();
}
}