@@ -154,7 +154,7 @@ public function getName(): string
154154 *
155155 * @param string $name Cookie name
156156 */
157- public function setName ($ name ): void
157+ public function setName (string $ name ): void
158158 {
159159 $ this ->data ['Name ' ] = $ name ;
160160 }
@@ -172,7 +172,7 @@ public function getValue(): ?string
172172 *
173173 * @param string $value Cookie value
174174 */
175- public function setValue ($ value ): void
175+ public function setValue (string $ value ): void
176176 {
177177 $ this ->data ['Value ' ] = $ value ;
178178 }
@@ -187,10 +187,8 @@ public function getDomain(): ?string
187187
188188 /**
189189 * Set the domain of the cookie.
190- *
191- * @param string $domain
192190 */
193- public function setDomain ($ domain ): void
191+ public function setDomain (string $ domain ): void
194192 {
195193 $ this ->data ['Domain ' ] = $ domain ;
196194 }
@@ -208,7 +206,7 @@ public function getPath(): string
208206 *
209207 * @param string $path Path of the cookie
210208 */
211- public function setPath ($ path ): void
209+ public function setPath (string $ path ): void
212210 {
213211 $ this ->data ['Path ' ] = $ path ;
214212 }
@@ -226,7 +224,7 @@ public function getMaxAge(): ?int
226224 *
227225 * @param int $maxAge Max age of the cookie in seconds
228226 */
229- public function setMaxAge ($ maxAge ): void
227+ public function setMaxAge (int $ maxAge ): void
230228 {
231229 $ this ->data ['Max-Age ' ] = $ maxAge ;
232230 }
@@ -266,7 +264,7 @@ public function getSecure(): ?bool
266264 *
267265 * @param bool $secure Set to true or false if secure
268266 */
269- public function setSecure ($ secure ): void
267+ public function setSecure (bool $ secure ): void
270268 {
271269 $ this ->data ['Secure ' ] = $ secure ;
272270 }
@@ -284,7 +282,7 @@ public function getDiscard(): ?bool
284282 *
285283 * @param bool $discard Set to true or false if this is a session cookie
286284 */
287- public function setDiscard ($ discard ): void
285+ public function setDiscard (bool $ discard ): void
288286 {
289287 $ this ->data ['Discard ' ] = $ discard ;
290288 }
@@ -302,7 +300,7 @@ public function getHttpOnly(): bool
302300 *
303301 * @param bool $httpOnly Set to true or false if this is HTTP only
304302 */
305- public function setHttpOnly ($ httpOnly ): void
303+ public function setHttpOnly (bool $ httpOnly ): void
306304 {
307305 $ this ->data ['HttpOnly ' ] = $ httpOnly ;
308306 }
0 commit comments