Amp\Artax\Cookie\Cookie class Cookie

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(string $name, string $value, int $expires = null, string $path = null, string $domain = '', bool $secure = false, bool $httpOnly = true)
No documentation.
Type Parameter Description Default Value
string $name No documentation. none
string $value No documentation. none
int $expires No documentation. null
string $path No documentation. null
string $domain No documentation. ''
bool $secure No documentation. false
bool $httpOnly No documentation. true
getName — public function getName(): string
No documentation.
getValue — public function getValue(): string
No documentation.
getExpirationTime — public function getExpirationTime()
No documentation.
isExpired — public function isExpired(): bool
No documentation.
getPath — public function getPath(): string
No documentation.
getDomain — public function getDomain(): string
No documentation.
isSecure — public function isSecure(): bool
No documentation.
isHttpOnly — public function isHttpOnly(): bool
No documentation.
withName — public function withName(string $name): self
No documentation.
Type Parameter Description Default Value
string $name No documentation. none
withValue — public function withValue(string $value): self
No documentation.
Type Parameter Description Default Value
string $value No documentation. none
withExpirationTime — public function withExpirationTime(int $value = null): self
No documentation.
Type Parameter Description Default Value
int $value No documentation. null
withPath — public function withPath(string $path): self
No documentation.
Type Parameter Description Default Value
string $path No documentation. none
withDomain — public function withDomain(string $domain): self
No documentation.
Type Parameter Description Default Value
string $domain No documentation. none
withSecure — public function withSecure(bool $secure): self
No documentation.
Type Parameter Description Default Value
bool $secure No documentation. none
withHttpOnly — public function withHttpOnly(bool $httpOnly): self
No documentation.
Type Parameter Description Default Value
bool $httpOnly No documentation. none
__toString — public function __toString(): string
No documentation.
fromString — public function fromString(string $rawCookieStr): self
No documentation.
Type Parameter Description Default Value
string $rawCookieStr No documentation. none