Factory.php
47 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Cookie; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface Factory |
| 7 | { |
| 8 | /** |
| 9 | * Create a new cookie instance. |
| 10 | * |
| 11 | * @param string $name |
| 12 | * @param string $value |
| 13 | * @param int $minutes |
| 14 | * @param string|null $path |
| 15 | * @param string|null $domain |
| 16 | * @param bool|null $secure |
| 17 | * @param bool $httpOnly |
| 18 | * @param bool $raw |
| 19 | * @param string|null $sameSite |
| 20 | * @return \Symfony\Component\HttpFoundation\Cookie |
| 21 | */ |
| 22 | public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = \true, $raw = \false, $sameSite = null); |
| 23 | /** |
| 24 | * Create a cookie that lasts "forever" (five years). |
| 25 | * |
| 26 | * @param string $name |
| 27 | * @param string $value |
| 28 | * @param string|null $path |
| 29 | * @param string|null $domain |
| 30 | * @param bool|null $secure |
| 31 | * @param bool $httpOnly |
| 32 | * @param bool $raw |
| 33 | * @param string|null $sameSite |
| 34 | * @return \Symfony\Component\HttpFoundation\Cookie |
| 35 | */ |
| 36 | public function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = \true, $raw = \false, $sameSite = null); |
| 37 | /** |
| 38 | * Expire the given cookie. |
| 39 | * |
| 40 | * @param string $name |
| 41 | * @param string|null $path |
| 42 | * @param string|null $domain |
| 43 | * @return \Symfony\Component\HttpFoundation\Cookie |
| 44 | */ |
| 45 | public function forget($name, $path = null, $domain = null); |
| 46 | } |
| 47 |