24 public function getName() : string;
32 public function getValue() : ?string;
57 public function getPath() : ?string;
__toString()
Returns the string representation of the object.
withMaxAge(int $maxAge=null)
Maximal life time of the cookie in seconds.
withPath(string $path=null)
Sets the cookie path.
withSecure(bool $secure=null)
Sets if the cookie is a secure cookie or not.
expire()
Expire the cookie.
Class CookieJarWrapperTest.
getDomain()
Cookie domain.
withValue(string $value=null)
Sets the cookie value.
withHttpOnly(bool $httpOnly=null)
Sets if the cookie is http only.
rememberForLongTime()
Sets the expiration date to +5 years.
getHttpOnly()
True if the cookie is http only otherwise false.
getSecure()
True if it's secure cookie otherwise false.
getExpires()
Expiration date as unix timestamp.
getMaxAge()
Max age measured in seconds.
withExpires($expires=null)
Sets the expiration date of the cookie.
withDomain(string $domain=null)
Sets the domain name for the cookie.