You are here

public function XPathExpr::__toString in Zircon Profile 8

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

Return value

string

1 call to XPathExpr::__toString()
XPathExpr::join in vendor/symfony/css-selector/XPath/XPathExpr.php
Joins another XPathExpr with a combiner.

File

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

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

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