| Total Complexity | 12 |
| Total Lines | 86 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Cookie extends \Symfony\Component\HttpFoundation\Cookie |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param $value |
||
| 9 | * @return $this |
||
| 10 | */ |
||
| 11 | public function setValue($value): self |
||
| 12 | { |
||
| 13 | $this->value = $value; |
||
| 14 | |||
| 15 | return $this; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param $domain |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | public function setDomain($domain): self |
||
| 23 | { |
||
| 24 | $this->domain = $domain; |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function setPath($path): self |
||
| 34 | } |
||
| 35 | |||
| 36 | public function setExpire($expire) |
||
| 37 | { |
||
| 38 | $this->expire = $expire; |
||
| 39 | |||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | public function getExpire() |
||
| 47 | { |
||
| 48 | return $this->getExpiresTime(); |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setExpireTimer($expires) |
||
| 52 | { |
||
| 53 | $this->expire = time() + $expires; |
||
| 54 | |||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function setSecured($secured) |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | public function isExpired(): bool |
||
| 74 | } |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return bool |
||
| 79 | */ |
||
| 80 | public function save(): bool |
||
| 91 | } |
||
| 92 | } |
||
| 93 |