Skip to content

Commit 44b933f

Browse files
Add missing @return $this annotations
1 parent f7d6c0f commit 44b933f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: XPath/XPathExpr.php

+9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public function getElement(): string
4343
return $this->element;
4444
}
4545

46+
/**
47+
* @return $this
48+
*/
4649
public function addCondition(string $condition): self
4750
{
4851
$this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition;
@@ -55,6 +58,9 @@ public function getCondition(): string
5558
return $this->condition;
5659
}
5760

61+
/**
62+
* @return $this
63+
*/
5864
public function addNameTest(): self
5965
{
6066
if ('*' !== $this->element) {
@@ -65,6 +71,9 @@ public function addNameTest(): self
6571
return $this;
6672
}
6773

74+
/**
75+
* @return $this
76+
*/
6877
public function addStarPrefix(): self
6978
{
7079
$this->path .= '*/';

0 commit comments

Comments
 (0)