ILIAS  release_7 Revision v7.30-3-g800a261c036
CookieJar.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP\Cookies;
4
5use Psr\Http\Message\ResponseInterface;
6
24interface CookieJar
25{
26
34 public function has(string $name) : bool;
35
36
45 public function get(string $name) : ?Cookie;
46
47
53 public function getAll() : array;
54
55
63 public function with(Cookie $setCookie) : CookieJar;
64
65
73 public function without(string $name) : CookieJar;
74
75
83 public function renderIntoResponseHeader(ResponseInterface $response) : ResponseInterface;
84}
An exception for terminatinating execution or to throw for unit testing.
with(Cookie $setCookie)
Creates a new cookie jar with the given cookie.
getAll()
Fetches all cookies from the current jar.
renderIntoResponseHeader(ResponseInterface $response)
Render CookieJar into a Response.
has(string $name)
Checks if a cookie with the given name is in the jar.
without(string $name)
Creates a cookie jar without the specified cookie.
if($format !==null) $name
Definition: metadata.php:230
Class CookieJarWrapperTest.
Definition: Cookie.php:3
$response