Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class HtmlCache |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var CacheService |
||
10 | */ |
||
11 | protected $cacheService; |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $key; |
||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $ttl; |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $tags; |
||
24 | |||
25 | /** |
||
26 | * @param CacheService $cacheService |
||
27 | * @param string $key |
||
28 | * @param int $ttl |
||
29 | * @param array $tags |
||
30 | */ |
||
31 | public function __construct(CacheService $cacheService, string $key, int $ttl = null, array $tags = []) |
||
32 | { |
||
33 | $this->cacheService = $cacheService; |
||
34 | $this->key = $key; |
||
35 | $this->ttl = $ttl; |
||
36 | $this->tags = $tags; |
||
37 | } |
||
38 | |||
39 | public function end() |
||
45 | } |
||
46 | } |
||
47 |