Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class Memoize |
||
8 | { |
||
9 | public static $cache = []; |
||
10 | |||
11 | private $baseKey; |
||
12 | |||
13 | 100 | public function __construct($baseKey) |
|
14 | { |
||
15 | 100 | $this->baseKey = $baseKey; |
|
16 | 100 | } |
|
17 | |||
18 | 100 | public function run(\Closure $closure, array $parameters = []) |
|
29 | } |
||
30 | |||
31 | 450 | public static function clear() |
|
34 | 450 | } |
|
35 | |||
36 | 100 | private function convertToCachableParameters(array $parameters) |
|
47 |