Skip to content

Commit 67efd2e

Browse files
authored
Merge pull request #7 from webchainro/add_getters_to_ValuePath
Add getters to value path
2 parents c022625 + 967844f commit 67efd2e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Ast/ValuePath.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ public function __construct(AttributePath $attributePath, Filter $filter)
2929
$this->filter = $filter;
3030
}
3131

32+
/**
33+
* @return AttributePath
34+
*/
35+
public function getAttributePath()
36+
{
37+
return $this->attributePath;
38+
}
39+
40+
/**
41+
* @return Filter
42+
*/
43+
public function getFilter()
44+
{
45+
return $this->filter;
46+
}
47+
3248
public function __toString()
3349
{
3450
return sprintf('%s[%s]', $this->attributePath, $this->filter);

0 commit comments

Comments
 (0)