You are here

public function XPathExpr::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/XPath/XPathExpr.php \Symfony\Component\CssSelector\XPath\XPathExpr::__construct()

Parameters

string $path:

string $element:

string $condition:

bool $starPrefix:

File

vendor/symfony/css-selector/XPath/XPathExpr.php, line 45

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

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