1 | <?php |
||
12 | trait CookieJarTemplate |
||
13 | { |
||
14 | /** |
||
15 | * @var \SplObjectStorage |
||
16 | */ |
||
17 | protected $cookies; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 12 | public function hasCookie(Cookie $cookie) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 12 | public function addCookie(Cookie $cookie) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 6 | public function removeCookie(Cookie $cookie) |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 1 | public function getCookies() |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 12 | public function getMatchingCookies(Cookie $cookie) |
|
80 | |||
81 | /** |
||
82 | * Finds matching cookies based on a callable. |
||
83 | * |
||
84 | * @param callable $match |
||
85 | * |
||
86 | * @return Cookie[] |
||
87 | */ |
||
88 | 12 | protected function findMatchingCookies(callable $match) |
|
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | 6 | public function hasCookies() |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 1 | public function setCookies(array $cookies) |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 5 | public function addCookies(array $cookies) |
|
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | 2 | public function removeCookies(array $cookies) |
|
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | */ |
||
141 | public function removeMatchingCookies($name = null, $domain = null, $path = null) |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | 2 | public function clear() |
|
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | 5 | public function count() |
|
181 | |||
182 | /** |
||
183 | * {@inheritdoc} |
||
184 | */ |
||
185 | 1 | public function getIterator() |
|
189 | } |
||
190 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.