You are here

public function XPathExpr::join 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::join()

Joins another XPathExpr with a combiner.

Parameters

string $combiner:

XPathExpr $expr:

Return value

XPathExpr

File

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

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

public function join($combiner, XPathExpr $expr) {
  $path = $this
    ->__toString() . $combiner;
  if ('*/' !== $expr->path) {
    $path .= $expr->path;
  }
  $this->path = $path;
  $this->element = $expr->element;
  $this->condition = $expr->condition;
  return $this;
}