Class Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar

ImplementsGuzzle\Plugin\Cookie\CookieJar\CookieJarInterface, Serializable

Cookie cookieJar that stores cookies an an array

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$cookies array Loaded cookie data Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar
$strictMode bool Whether or not strict mode is enabled. Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar

Property Details

$cookies protected property

Loaded cookie data

protected array $cookies = []
$strictMode protected property

Whether or not strict mode is enabled. When enabled, exceptions will be thrown for invalid cookies

protected bool $strictMode null

Method Details

__construct() public method

public void __construct ( $strictMode false )
$strictMode bool

Set to true to throw exceptions when invalid cookies are added to the cookie jar

add() public method

public void add ( Guzzle\Plugin\Cookie\Cookie $cookie )
addCookiesFromResponse() public method

public void addCookiesFromResponse ( Guzzle\Http\Message\Response $response, Guzzle\Http\Message\RequestInterface $request null )
all() public method

public void all ( $domain null, $path null, $name null, $skipDiscardable false, $skipExpired true )
count() public method

Returns the total number of stored cookies

public int count ( )
getIterator() public method

Returns an iterator

public ArrayIterator getIterator ( )
getMatchingCookies() public method

public void getMatchingCookies ( Guzzle\Http\Message\RequestInterface $request )
remove() public method

public void remove ( $domain null, $path null, $name null )
removeExpired() public method

public void removeExpired ( )
removeTemporary() public method

public void removeTemporary ( )
serialize() public method

Serializes the cookie cookieJar

public string serialize ( )
setStrictMode() public method

Enable or disable strict mode on the cookie jar

public self setStrictMode ( $strictMode )
$strictMode bool

Set to true to throw exceptions when invalid cookies are added. False to ignore them.

unserialize() public method

Unserializes the cookie cookieJar

public void unserialize ( $data )