Skip to content

Commit

Permalink
ArrayWalker renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofiosko committed Sep 9, 2019
1 parent 7f0e74f commit fcdbb50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Utils/ArrayWalker/ArrayWalkerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trait ArrayWalkerTrait
{
protected $walker = null;

public function getData($key, $defaultValue = null){
public function getValue($key, $defaultValue = null){
return $this->getWalker()->get($key, $defaultValue);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test-walker-trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
$storage = new ExampleDataStorage();

echo '<pre>';
var_dump($storage->getData('level-1'));
var_dump($storage->getValue('level-1'));
echo '</pre>';

0 comments on commit fcdbb50

Please sign in to comment.