| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ImageGeneratorCache |
||
| 8 | { |
||
| 9 | private $imageGenerator; |
||
| 10 | private $cache; |
||
| 11 | |||
| 12 | public function __construct(ImageGenerator $imageGenerator, AbstractAdapter $cache) |
||
| 13 | { |
||
| 14 | $this->imageGenerator = $imageGenerator; |
||
| 15 | $this->cache = $cache; |
||
| 16 | } |
||
| 17 | |||
| 18 | private function getKey(string $method, array $args) |
||
| 19 | { |
||
| 20 | $key = str_replace(['\\', ':'], '_', get_class() . '::' . $method); |
||
| 21 | $key .= str_replace('.', '_', implode("-", $args)); |
||
| 22 | |||
| 23 | return $key; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function __call($name, $arguments) |
||
| 38 | } |
||
| 39 | } |
||
| 40 |