1 | <?php |
||
11 | class CacheDecorator extends AbstractDecorator |
||
12 | { |
||
13 | /** |
||
14 | * @var CacheInterface |
||
15 | */ |
||
16 | protected $cache; |
||
17 | |||
18 | /** |
||
19 | * @var array<int, string> |
||
20 | */ |
||
21 | protected static $checkedLoginIds = []; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | private $ttl; |
||
27 | |||
28 | /** |
||
29 | * @param WebServiceInterface $webService |
||
30 | * @param CacheInterface $cache |
||
31 | * @param int $ttlSeconds |
||
32 | */ |
||
33 | 2 | public function __construct( |
|
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | 2 | public function call(string $functionName, array $arguments = []) |
|
69 | |||
70 | /** |
||
71 | * @param array<string, mixed> $arguments |
||
72 | */ |
||
73 | 2 | protected function hashCall(string $functionName, array $arguments): string |
|
77 | } |
||
78 |