5use Dflydev\FigCookies\SetCookie;
44 return $this->cookie->getName();
53 return $this->cookie->getValue();
62 return $this->cookie->getExpires();
71 return $this->cookie->getMaxAge();
80 return $this->cookie->getPath();
89 return $this->cookie->getDomain();
98 return $this->cookie->getSecure();
107 return $this->cookie->getHttpOnly();
116 $clone = clone $this;
117 $clone->cookie = $this->cookie->
withValue($value);
128 $clone = clone $this;
129 $clone->cookie = $this->cookie->
withExpires($expires);
140 $clone = clone $this;
141 $clone->cookie = $this->cookie->rememberForever();
152 $clone = clone $this;
153 $clone->cookie = $this->cookie->
expire();
164 $clone = clone $this;
165 $clone->cookie = $this->cookie->
withMaxAge($maxAge);
176 $clone = clone $this;
177 $clone->cookie = $this->cookie->
withPath($path);
188 $clone = clone $this;
189 $clone->cookie = $this->cookie->
withDomain($domain);
200 $clone = clone $this;
201 $clone->cookie = $this->cookie->
withSecure($secure);
212 $clone = clone $this;
213 $clone->cookie = $this->cookie->
withHttpOnly($httpOnly);
224 return $this->cookie->__toString();
An exception for terminatinating execution or to throw for unit testing.
withHttpOnly(bool $httpOnly=null)
@inheritDoc
withPath(string $path=null)
@inheritDoc
withExpires($expires=null)
@inheritDoc
rememberForLongTime()
@inheritDoc
withMaxAge(int $maxAge=null)
@inheritDoc
$cookie
Underlying implementation.
withValue(string $value=null)
@inheritDoc
withDomain(string $domain=null)
@inheritDoc
getImplementation()
Returns the underlying implementation.
__construct(SetCookie $cookie)
CookieFacade constructor.
withSecure(bool $secure=null)
@inheritDoc
withMaxAge(int $maxAge=null)
Maximal life time of the cookie in seconds.
withPath(string $path=null)
Sets the cookie path.
withValue(string $value=null)
Sets the cookie value.
withSecure(bool $secure=null)
Sets if the cookie is a secure cookie or not.
withHttpOnly(bool $httpOnly=null)
Sets if the cookie is http only.
withExpires($expires=null)
Sets the expiration date of the cookie.
expire()
Expire the cookie.
withDomain(string $domain=null)
Sets the domain name for the cookie.
Class CookieJarWrapperTest.
Class ChatMainBarProvider \MainMenu\Provider.