diff --git a/src/DataLoader.php b/src/DataLoader.php index 918879e..28642cd 100644 --- a/src/DataLoader.php +++ b/src/DataLoader.php @@ -270,7 +270,12 @@ private static function awaitInstances() } } - private function getCacheKeyFromKey($key) + /** + * @param $key + * + * @return mixed + */ + protected function getCacheKeyFromKey($key) { $cacheKeyFn = $this->options->getCacheKeyFn(); $cacheKey = $cacheKeyFn ? $cacheKeyFn($key) : $key; @@ -278,7 +283,11 @@ private function getCacheKeyFromKey($key) return $cacheKey; } - private function checkKey($key, $method) + /** + * @param $key + * @param $method + */ + protected function checkKey($key, $method) { if (null === $key) { throw new \InvalidArgumentException(