diff --git a/src/Utils/ArrayWalker/ArrayWalkerTrait.php b/src/Utils/ArrayWalker/ArrayWalkerTrait.php index 974f300..3388e35 100644 --- a/src/Utils/ArrayWalker/ArrayWalkerTrait.php +++ b/src/Utils/ArrayWalker/ArrayWalkerTrait.php @@ -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); } diff --git a/tests/test-walker-trait.php b/tests/test-walker-trait.php index 145e9e9..a845aa2 100644 --- a/tests/test-walker-trait.php +++ b/tests/test-walker-trait.php @@ -4,5 +4,5 @@ $storage = new ExampleDataStorage(); echo '
';
-var_dump($storage->getData('level-1'));
+var_dump($storage->getValue('level-1'));
 echo '
'; \ No newline at end of file