|
@@ -176,6 +176,7 @@ class Client
|
|
|
* Get the cookies stored in the Client.
|
|
* Get the cookies stored in the Client.
|
|
|
*
|
|
*
|
|
|
* @return \Cake\Http\Cookie\CookieCollection
|
|
* @return \Cake\Http\Cookie\CookieCollection
|
|
|
|
|
+ * @deprecated 3.5.0 Use getCookies() instead.
|
|
|
*/
|
|
*/
|
|
|
public function cookies()
|
|
public function cookies()
|
|
|
{
|
|
{
|
|
@@ -183,6 +184,29 @@ class Client
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * Get the cookies stored in the Client.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return \Cake\Http\Cookie\CookieCollection
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getCookies()
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->_cookies;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Sets the cookie collection.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param \Cake\Http\Cookie\CookieCollection $cookies Cookie collection to be set.
|
|
|
|
|
+ * @return $this
|
|
|
|
|
+ */
|
|
|
|
|
+ public function setCookies(CookieCollection $cookies)
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->_cookies = $cookies;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* Do a GET request.
|
|
* Do a GET request.
|
|
|
*
|
|
*
|
|
|
* The $data argument supports a special `_content` key
|
|
* The $data argument supports a special `_content` key
|