[HttpFoundation] fixed phpdoc
This commit is contained in:
parent
5ee8eca0ee
commit
c2e4ec44a8
@ -179,9 +179,6 @@ class HeaderBag
|
|||||||
* Sets a cookie.
|
* Sets a cookie.
|
||||||
*
|
*
|
||||||
* @param Cookie $cookie
|
* @param Cookie $cookie
|
||||||
*
|
|
||||||
* @throws \InvalidArgumentException When the cookie expire parameter is not valid
|
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setCookie(Cookie $cookie)
|
public function setCookie(Cookie $cookie)
|
||||||
@ -215,6 +212,9 @@ class HeaderBag
|
|||||||
* Returns a cookie
|
* Returns a cookie
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
*
|
||||||
|
* @throws \InvalidArgumentException When the cookie does not exist
|
||||||
|
*
|
||||||
* @return Cookie
|
* @return Cookie
|
||||||
*/
|
*/
|
||||||
public function getCookie($name)
|
public function getCookie($name)
|
||||||
|
@ -25,13 +25,13 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
*
|
*
|
||||||
* @param array $headers An array of HTTP headers
|
* @param array $headers An array of HTTP headers
|
||||||
*/
|
*/
|
||||||
public function __construct(array $parameters = array())
|
public function __construct(array $headers = array())
|
||||||
{
|
{
|
||||||
// this line is not necessary, but including it avoids any stupid
|
// this line is not necessary, but including it avoids any stupid
|
||||||
// errors if we add code to the parent's constructor
|
// errors if we add code to the parent's constructor
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->replace($parameters);
|
$this->replace($headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user