Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class BotParserCache |
||
8 | { |
||
9 | private $cache; |
||
10 | private $parser; |
||
11 | |||
12 | public function __construct(BotParser $parser, AbstractAdapter $cache) |
||
13 | { |
||
14 | $this->parser = $parser; |
||
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 |