Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Cookie implements CookieInterface |
||
16 | { |
||
17 | /** |
||
18 | * @param string $key |
||
19 | * @return string |
||
20 | */ |
||
21 | public function get(string $key): string |
||
22 | { |
||
23 | return $_COOKIE[$key]; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param string $key |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function has(string $key): bool |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @codeCoverageIgnore |
||
37 | * @param string $key |
||
38 | */ |
||
39 | public function unset(string $key): void |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param string $key |
||
47 | * @param string $value |
||
48 | */ |
||
49 | public function set(string $key, string $value): void |
||
54 |