Method | Description | |
---|---|---|
__construct ( array $cookies = [], $config = [] ) | ||
add ( blink\http\Cookie $cookie ) | Add a cookie to the bag. | |
all ( ) : blink\http\Cookie[] | Returns all cookies. | |
count ( ) | ||
get ( $name ) : blink\http\Cookie | null | Returns a cookie by name. | |
getIterator ( ) | ||
has ( $name ) : boolean | Returns whether a cookie is exists. | |
normalize ( array $cookies ) | ||
remove ( $name ) | Remove a cookie by name. |
public add ( blink\http\Cookie $cookie ) | ||
$cookie | blink\http\Cookie |
public all ( ) : blink\http\Cookie[] | ||
return | blink\http\Cookie[] |