Cartalyst\Sentinel\Sessions\FuelPHPSession::get PHP Method

get() public method

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

Usage Example

 public function testGet()
 {
     $session = new FuelPHPSession($store = m::mock('Fuel\\Core\\Session_Driver'), 'foo');
     $store->shouldReceive('get')->with('foo')->once()->andReturn('bar');
     $this->assertEquals('bar', $session->get());
 }