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) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 6 | public function removeCookie(Cookie $cookie) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 1 | public function getCookies() |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 12 | public function getMatchingCookies(Cookie $cookie) |
|
81 | |||
82 | /** |
||
83 | * Finds matching cookies based on a callable |
||
84 | * |
||
85 | * @param callable $match |
||
86 | * |
||
87 | * @return Cookie[] |
||
88 | */ |
||
89 | 12 | protected function findMatchingCookies(callable $match) |
|
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | 6 | public function hasCookies() |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 1 | public function setCookies(array $cookies) |
|
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | 5 | public function addCookies(array $cookies) |
|
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | 2 | public function removeCookies(array $cookies) |
|
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | public function removeMatchingCookies($name = null, $domain = null, $path = null) |
||
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | 2 | public function clear() |
|
174 | |||
175 | /** |
||
176 | * {@inheritdoc} |
||
177 | */ |
||
178 | 5 | public function count() |
|
182 | |||
183 | /** |
||
184 | * {@inheritdoc} |
||
185 | */ |
||
186 | 1 | public function getIterator() |
|
190 | } |
||
191 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.