From fcdbb50e3eeb4201bb523b631d13d85e6c2e1f35 Mon Sep 17 00:00:00 2001 From: Sofiosko Date: Mon, 9 Sep 2019 16:05:02 +0200 Subject: [PATCH] ArrayWalker renaming --- src/Utils/ArrayWalker/ArrayWalkerTrait.php | 2 +- tests/test-walker-trait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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