Symfony\Component\BrowserKit\Cookie::getRawValue PHP Метод

getRawValue() публичный Метод

Gets the raw value of the cookie.
public getRawValue ( ) : string
Результат string The cookie value
    public function getRawValue()
    {
        return $this->rawValue;
    }

Usage Example

Пример #1
0
 public function testGetRawValue()
 {
     $cookie = new Cookie('foo', 'bar=baz');
     // decoded value
     $this->assertEquals('bar%3Dbaz', $cookie->getRawValue(), '->getRawValue() returns the urlencoded cookie value');
     $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true);
     // raw value
     $this->assertEquals('bar%3Dbaz', $cookie->getRawValue(), '->getRawValue() returns the non-urldecoded cookie value');
 }