Skip to content

Commit

Permalink
Merge pull request #7 from webchainro/add_getters_to_ValuePath
Browse files Browse the repository at this point in the history
Add getters to value path
  • Loading branch information
tmilos authored Sep 19, 2024
2 parents c022625 + 967844f commit 67efd2e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Ast/ValuePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ public function __construct(AttributePath $attributePath, Filter $filter)
$this->filter = $filter;
}

/**
* @return AttributePath
*/
public function getAttributePath()
{
return $this->attributePath;
}

/**
* @return Filter
*/
public function getFilter()
{
return $this->filter;
}

public function __toString()
{
return sprintf('%s[%s]', $this->attributePath, $this->filter);
Expand Down

0 comments on commit 67efd2e

Please sign in to comment.