43 return $this->cookies->has(
$name);
52 $cookie = $this->cookies->get(
$name);
54 return (is_null($cookie)) ? null :
new CookieWrapper($cookie);
64 foreach ($this->cookies->getAll() as $cookie) {
68 return $wrappedCookies;
80 $wrapper = $setCookie;
81 $internalCookie = $wrapper->getImplementation();
84 $clone->cookies = $this->cookies->with($internalCookie);
96 $clone->cookies = $this->cookies->without(
$name);
107 $response = $this->cookies->renderIntoSetCookieHeader($response);
Class CookieJarWrapperTest.
renderIntoResponseHeader(ResponseInterface $response)
Representation of an outgoing, server-side response.
with(Cookie $setCookie)
Creates a new cookie jar with the given cookie.
__construct(SetCookies $cookies)
CookieJarWrapper constructor.