1 | <?php |
||
11 | class CookieJar extends Parameter implements CookieJarInterface |
||
12 | { |
||
13 | /** @var \Wandu\Http\Cookie\Cookie[] */ |
||
14 | protected $setCookies = []; |
||
15 | |||
16 | /** |
||
17 | * @param \Psr\Http\Message\ServerRequestInterface $request |
||
18 | * @param \Wandu\Http\Contracts\ParameterInterface $fallback |
||
19 | */ |
||
20 | 22 | public function __construct(ServerRequestInterface $request, ParameterInterface $fallback = null) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 5 | public function toArray() |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 12 | public function get($name, $default = null, $isStrict = false) |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 4 | public function set($name, $value, DateTime $expire = null) |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 9 | public function has($name) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 3 | public function remove($name) |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 1 | public function offsetSet($offset, $value) |
|
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | 1 | public function offsetUnset($offset) |
|
97 | |||
98 | /** |
||
99 | * @param \Psr\Http\Message\ResponseInterface $response |
||
100 | * @return \Psr\Http\Message\ResponseInterface |
||
101 | */ |
||
102 | public function applyToResponse(ResponseInterface $response) |
||
109 | } |
||
110 |