ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
CookieJar.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\HTTP\Cookies;
4 
6 
24 interface 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 }
Class CookieJarWrapperTest.
Definition: Cookie.php:3
getAll()
Fetches all cookies from the current jar.
if($format !==null) $name
Definition: metadata.php:230
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.
renderIntoResponseHeader(ResponseInterface $response)
Render CookieJar into a Response.
with(Cookie $setCookie)
Creates a new cookie jar with the given cookie.
$response