| Total Complexity | 6 | 
| Total Lines | 56 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | class Cookie implements CookieInterface  | 
            ||
| 13 | { | 
            ||
| 14 | protected string $name;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * Options for `setcookie()`  | 
            ||
| 18 | * @var array<string,mixed>  | 
            ||
| 19 | */  | 
            ||
| 20 | protected array $options;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Cookies constructor.  | 
            ||
| 24 | *  | 
            ||
| 25 | * @param string $name  | 
            ||
| 26 | * @param array<string,mixed> $options  | 
            ||
| 27 | */  | 
            ||
| 28 | public function __construct(string $name, array $options = [])  | 
            ||
| 29 |     { | 
            ||
| 30 | $this->name = $name;  | 
            ||
| 31 | $this->options = array_change_key_case($options, CASE_LOWER);  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @inheritDoc  | 
            ||
| 36 | */  | 
            ||
| 37 | public function get(): ?string  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 | * @inheritDoc  | 
            ||
| 44 | */  | 
            ||
| 45 | public function set(string $value, int $expire): void  | 
            ||
| 54 | }  | 
            ||
| 55 | |||
| 56 | /**  | 
            ||
| 57 | * @inheritDoc  | 
            ||
| 58 | */  | 
            ||
| 59 | public function clear(): void  | 
            ||
| 68 | }  | 
            ||
| 69 | }  | 
            ||
| 70 |