yxorP Documentation

CookieJar
in package
implements CookieJarInterface

Interfaces, Classes, Traits and Enums

CookieJarInterface

Table of Contents

$cookies  : array<string|int, mixed>
$strictMode  : mixed
__construct()  : mixed
clear()  : mixed
clearSessionCookies()  : mixed
count()  : int
extractCookies()  : mixed
fromArray()  : CookieJar
getCookieByName()  : mixed
getCookieValue()  : mixed
getIterator()  : ArrayIterator
setCookie()  : bool
shouldPersist()  : bool
toArray()  : array<string|int, mixed>
withCookieHeader()  : RequestInterface
getCookiePathFromRequest()  : string
removeCookieIfEmpty()  : mixed

Properties

$cookies

private array<string|int, mixed> $cookies = []

Methods

__construct()

public __construct([mixed $strictMode = false ][, mixed $cookieArray = [] ]) : mixed
Parameters
$strictMode : mixed = false
$cookieArray : mixed = []
Return values
mixed

clear()

public clear([mixed $domain = null ][, mixed $path = null ][, mixed $name = null ]) : mixed
Parameters
$domain : mixed = null
$path : mixed = null
$name : mixed = null
Return values
mixed

clearSessionCookies()

public clearSessionCookies() : mixed
Return values
mixed

count()

public count() : int
Return values
int

fromArray()

public static fromArray(array<string|int, mixed> $cookies, mixed $domain) : CookieJar
Parameters
$cookies : array<string|int, mixed>
$domain : mixed
Return values
CookieJar

getCookieByName()

public getCookieByName(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

getCookieValue()

public static getCookieValue(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

shouldPersist()

public static shouldPersist(SetCookie $cookie[, mixed $allowSessionCookies = false ]) : bool
Parameters
$cookie : SetCookie
$allowSessionCookies : mixed = false
Return values
bool

toArray()

public toArray() : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

Search results