blob: 6f950219c1c0e320ddbfe8d8a8b9658a593567cd [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Cookie;
4
5interface Factory
6{
7 /**
8 * Create a new cookie instance.
9 *
10 * @param string $name
11 * @param string $value
12 * @param int $minutes
13 * @param string|null $path
14 * @param string|null $domain
15 * @param bool|null $secure
16 * @param bool $httpOnly
17 * @param bool $raw
18 * @param string|null $sameSite
19 * @return \Symfony\Component\HttpFoundation\Cookie
20 */
21 public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null);
22
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 /**
39 * Expire the given cookie.
40 *
41 * @param string $name
42 * @param string|null $path
43 * @param string|null $domain
44 * @return \Symfony\Component\HttpFoundation\Cookie
45 */
46 public function forget($name, $path = null, $domain = null);
47}