1 | <?php declare(strict_types=1); |
||
28 | class Cookie implements CookieInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $name; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $value; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | */ |
||
43 | private $expire; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $path; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | private $domain; |
||
54 | |||
55 | /** |
||
56 | * @var bool |
||
57 | */ |
||
58 | private $isSecure; |
||
59 | |||
60 | /** |
||
61 | * @var bool |
||
62 | */ |
||
63 | private $isHttpOnly; |
||
64 | |||
65 | /** |
||
66 | * @var bool |
||
67 | */ |
||
68 | private $isRaw; |
||
69 | |||
70 | /** |
||
71 | * @param string $name |
||
72 | * @param string $value |
||
73 | * @param int $expire |
||
74 | * @param string $path |
||
75 | * @param string $domain |
||
76 | * @param bool $isSecure |
||
77 | * @param bool $isHttpOnly |
||
78 | 3 | * @param bool $isRaw |
|
79 | */ |
||
80 | public function __construct( |
||
101 | |||
102 | /** |
||
103 | 3 | * @inheritdoc |
|
104 | */ |
||
105 | 3 | public function getName(): string |
|
109 | |||
110 | /** |
||
111 | 3 | * @inheritdoc |
|
112 | */ |
||
113 | 3 | public function getValue(): string |
|
117 | |||
118 | /** |
||
119 | 3 | * @inheritdoc |
|
120 | */ |
||
121 | 3 | public function setValue(string $value): CookieInterface |
|
127 | |||
128 | /** |
||
129 | 3 | * @inheritdoc |
|
130 | */ |
||
131 | 3 | public function getExpiresAtUnixTime(): int |
|
135 | |||
136 | /** |
||
137 | 3 | * @inheritdoc |
|
138 | */ |
||
139 | 3 | public function setExpiresAtUnixTime(int $unixTimestamp): CookieInterface |
|
149 | |||
150 | /** |
||
151 | 1 | * @inheritdoc |
|
152 | */ |
||
153 | 1 | public function setExpiresInSeconds(int $seconds): CookieInterface |
|
157 | |||
158 | /** |
||
159 | 1 | * @inheritdoc |
|
160 | */ |
||
161 | 1 | public function setExpiresAtDataTime(DateTimeInterface $dateTime): CookieInterface |
|
165 | |||
166 | /** |
||
167 | 3 | * @inheritdoc |
|
168 | */ |
||
169 | 3 | public function getPath(): string |
|
173 | |||
174 | /** |
||
175 | 3 | * @inheritdoc |
|
176 | */ |
||
177 | 3 | public function setPath(string $path): CookieInterface |
|
183 | |||
184 | /** |
||
185 | 3 | * @inheritdoc |
|
186 | */ |
||
187 | 3 | public function getDomain(): string |
|
191 | |||
192 | /** |
||
193 | 3 | * @inheritdoc |
|
194 | */ |
||
195 | 3 | public function setDomain(string $domain): CookieInterface |
|
201 | |||
202 | /** |
||
203 | 3 | * @inheritdoc |
|
204 | */ |
||
205 | 3 | public function isSendOnlyOverSecureConnection(): bool |
|
209 | |||
210 | /** |
||
211 | 2 | * @inheritdoc |
|
212 | */ |
||
213 | 2 | public function setSendOnlyOverSecureConnection(): CookieInterface |
|
219 | |||
220 | /** |
||
221 | 2 | * @inheritdoc |
|
222 | */ |
||
223 | 2 | public function isSendOverAnyConnection(): bool |
|
227 | |||
228 | /** |
||
229 | 2 | * @inheritdoc |
|
230 | */ |
||
231 | 2 | public function setSendOverAnyConnection(): CookieInterface |
|
237 | |||
238 | /** |
||
239 | 3 | * @inheritdoc |
|
240 | */ |
||
241 | 3 | public function isAccessibleOnlyThroughHttp(): bool |
|
245 | |||
246 | /** |
||
247 | 2 | * @inheritdoc |
|
248 | */ |
||
249 | 2 | public function setAccessibleOnlyThroughHttp(): CookieInterface |
|
255 | |||
256 | /** |
||
257 | 2 | * @inheritdoc |
|
258 | */ |
||
259 | 2 | public function isAccessibleThroughHttpAndScripts(): bool |
|
263 | |||
264 | /** |
||
265 | 2 | * @inheritdoc |
|
266 | */ |
||
267 | 2 | public function setAccessibleThroughHttpAndScripts(): CookieInterface |
|
273 | |||
274 | /** |
||
275 | 2 | * @inheritdoc |
|
276 | */ |
||
277 | 2 | public function isRaw(): bool |
|
281 | |||
282 | /** |
||
283 | 3 | * @inheritdoc |
|
284 | */ |
||
285 | 3 | public function setAsRaw(): CookieInterface |
|
291 | |||
292 | /** |
||
293 | 3 | * @inheritdoc |
|
294 | */ |
||
295 | 3 | public function isNotRaw(): bool |
|
299 | |||
300 | /** |
||
301 | 2 | * @inheritdoc |
|
302 | */ |
||
303 | 2 | public function setAsNotRaw(): CookieInterface |
|
309 | } |
||
310 |