You are here

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

Parameters

$condition:

Return value

XPathExpr

1 call to XPathExpr::addCondition()
XPathExpr::addNameTest in vendor/symfony/css-selector/XPath/XPathExpr.php

File

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

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

public function addCondition($condition) {
  $this->condition = $this->condition ? sprintf('%s and (%s)', $this->condition, $condition) : $condition;
  return $this;
}