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

get() public method

{@inheritDoc}
public get ( )
    public function get()
    {
        $value = Cookie::get($this->key);
        if ($value) {
            return json_decode($value);
        }
    }

Usage Example

Beispiel #1
0
 public function testGet()
 {
     $cookie = new FuelPHPCookie('foo');
     $this->assertEquals('baz', $cookie->get());
 }