52 return new CookieWrapper(SetCookie::fromSetCookieString($string));
An exception for terminatinating execution or to throw for unit testing.
static create($name, $value=null)
static createRememberedForever($name, $value=null)
static createExpired($name)
fromSetCookieString($string)
Creates the cookie from the cookie string.Cookie
createRememberedForLongTime($name, $value=null)
Create a new cookie with the given name and value which expires in 5 years.Cookie
create($name, $value=null)
Create a new cookie with the given name and value.Cookie
createExpired($name)
Creates an already expired cookie.This is useful if the cookie should be deleted at the client end....
Class CookieJarWrapperTest.