Total Complexity | 9 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Cookie |
||
8 | { |
||
9 | protected $key; |
||
10 | |||
11 | public function __construct(string $cookieKey) |
||
12 | { |
||
13 | $this->key = $cookieKey; |
||
14 | } |
||
15 | |||
16 | public function save(string $content): void |
||
19 | } |
||
20 | |||
21 | public function get(): ?string |
||
39 | } |
||
40 | } |
||
41 | |||
42 | protected function getCookie(): ?string |
||
49 | } |
||
50 | |||
51 | public function has(): bool |
||
56 |