Skip to content

Commit dd7b291

Browse files
committed
HierarchicalCachePoolTrait::getValueFormStore was renamed to HierarchicalCachePoolTrait::getDirectValue
1 parent 89e01bd commit dd7b291

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
44

55
## UNRELEASED
66

7+
### Changed
8+
9+
* `HierarchicalCachePoolTrait::getValueFormStore` was renamed to `HierarchicalCachePoolTrait::getDirectValue`
10+
711
## 0.3.0
812

913
### Changed

HierarchicalCachePoolTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ trait HierarchicalCachePoolTrait
2626
private $keyCache = [];
2727

2828
/**
29-
* Get a value form the store. This must not be an PoolItemInterface.
29+
* Get a value from the storage.
3030
*
31-
* @param string $key
31+
* @param string $name
3232
*
33-
* @return string|null
33+
* @return mixed
3434
*/
35-
abstract protected function getValueFormStore($key);
35+
abstract public function getDirectValue($name);
3636

3737
/**
3838
* Get a key to use with the hierarchy. If the key does not start with HierarchicalPoolInterface::SEPARATOR
@@ -62,7 +62,7 @@ protected function getHierarchyKey($key, &$pathKey = null)
6262
if (isset($this->keyCache[$pathKey])) {
6363
$index = $this->keyCache[$pathKey];
6464
} else {
65-
$index = $this->getValueFormStore($pathKey);
65+
$index = $this->getDirectValue($pathKey);
6666
$this->keyCache[$pathKey] = $index;
6767
}
6868

Tests/Helper/CachePool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function exposeGetHierarchyKey($key, &$pathKey = null)
4242
return $this->getHierarchyKey($key, $pathKey);
4343
}
4444

45-
protected function getValueFormStore($key)
45+
protected function getDirectValue($key)
4646
{
4747
return array_shift($this->storeValues);
4848
}

0 commit comments

Comments
 (0)