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

コード例 #1
0
ファイル: FuelPHPCookieTest.php プロジェクト: 2bj/sentinel-1
 public function testGet()
 {
     $cookie = new FuelPHPCookie('foo');
     $this->assertEquals('baz', $cookie->get());
 }