We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@return $this
1 parent f7d6c0f commit 44b933fCopy full SHA for 44b933f
XPath/XPathExpr.php
@@ -43,6 +43,9 @@ public function getElement(): string
43
return $this->element;
44
}
45
46
+ /**
47
+ * @return $this
48
+ */
49
public function addCondition(string $condition): self
50
{
51
$this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition;
@@ -55,6 +58,9 @@ public function getCondition(): string
55
58
return $this->condition;
56
59
57
60
61
62
63
64
public function addNameTest(): self
65
66
if ('*' !== $this->element) {
@@ -65,6 +71,9 @@ public function addNameTest(): self
71
return $this;
72
67
73
74
75
76
68
77
public function addStarPrefix(): self
69
78
70
79
$this->path .= '*/';
0 commit comments