getValue() публичный метод

Gets the value of the cookie.
public getValue ( ) : string
Результат string The cookie value
Пример #1
0
 public function testGetValue()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('bar', $cookie->getValue(), '->getValue() returns the cookie value');
     $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true);
     // raw value
     $this->assertEquals('bar=baz', $cookie->getValue(), '->getValue() returns the urldecoded cookie value');
 }
Пример #2
0
 public function testGetValue()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('bar', $cookie->getValue(), '->getValue() returns the cookie value');
 }