Amp\Http\Cookie\CookieAttributes classCookieAttributes

Cookie attributes as defined in https://tools.ietf.org/html/rfc6265.

Summary

Properties

Methods

Properties

Methods

empty —public functionempty():Amp\Http\Cookie\CookieAttributes
No documentation.
default —public functiondefault():Amp\Http\Cookie\CookieAttributes
No documentation.
withPath —public functionwithPath(string$path):self
No documentation.
Type Parameter Description Default Value
string $path Cookie path. none
withDomain —public functionwithDomain(string$domain):self
No documentation.
Type Parameter Description Default Value
string $domain Cookie domain. none
withMaxAge —public functionwithMaxAge(int$maxAge):self

Applies the given maximum age to the cookie.

Type Parameter Description Default Value
int $maxAge Cookie maximum age. none
withoutMaxAge —public functionwithoutMaxAge():self

Removes any max-age information.

withExpiry —public functionwithExpiry(DateTimeInterface$date):self

Applies the given expiry to the cookie.

Type Parameter Description Default Value
DateTimeInterface $date No documentation. none
withoutExpiry —public functionwithoutExpiry():self

Removes any expiry information.

withSecure —public functionwithSecure():self
No documentation.
withoutSecure —public functionwithoutSecure():self
No documentation.
withHttpOnly —public functionwithHttpOnly():self
No documentation.
withoutHttpOnly —public functionwithoutHttpOnly():self
No documentation.
getPath —public functiongetPath():string
No documentation.
getDomain —public functiongetDomain():string
No documentation.
getMaxAge —public functiongetMaxAge():int|null
No documentation.
getExpiry —public functiongetExpiry():DateTimeImmutable|null
No documentation.
isSecure —public functionisSecure():bool
No documentation.
isHttpOnly —public functionisHttpOnly():bool
No documentation.
__toString —public function__toString():string
No documentation.