Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class BotParserCache |
||
22 | { |
||
23 | private $cache; |
||
24 | private $parser; |
||
25 | |||
26 | public function __construct(BotParser $parser, AbstractAdapter $cache) |
||
27 | { |
||
28 | $this->parser = $parser; |
||
29 | $this->cache = $cache; |
||
30 | } |
||
31 | |||
32 | private function getKey(string $method, array $args) |
||
33 | { |
||
34 | $key = str_replace(['\\', ':'], '_', get_class() . '::' . $method); |
||
35 | $key .= str_replace('.', '_', implode("-", $args)); |
||
36 | |||
37 | return $key; |
||
38 | } |
||
39 | |||
40 | public function __call($name, $arguments) |
||
52 | } |
||
53 | } |
||
54 |