Cartalyst\Sentinel\Cookies\NativeCookie::get PHP Method

get() public method

{@inheritDoc}
public get ( )
    public function get()
    {
        return $this->getCookie();
    }

Usage Example

示例#1
0
 public function testGet()
 {
     $cookie = new NativeCookie('__sentinel');
     $this->assertNull($cookie->get());
     $_COOKIE['__sentinel'] = serialize('bar');
     $this->assertEquals('bar', $cookie->get());
 }