Cartalyst\Sentinel\Cookies\FuelPHPCookie::get PHP 메소드

get() 공개 메소드

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

Usage Example

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