5use InvalidArgumentException;
 
   20        if ($setCookies->has(
$name)) {
 
   21            return $setCookies->get(
$name);
 
   61        if (! is_callable($modify)) {
 
   62            throw new InvalidArgumentException(
'$modify must be callable.');
 
   66        $setCookie = $modify($setCookies->has(
$name)
 
   67            ? $setCookies->get(
$name)
 
An exception for terminatinating execution or to throw for unit testing.
static expire(ResponseInterface $response, $cookieName)
static modify(ResponseInterface $response, $name, $modify)
static create($name, $value=null)
static createExpired($name)
static fromResponse(ResponseInterface $response)
Create SetCookies from a Response.
Representation of an outgoing, server-side response.