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

get() public method

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

Usage Example

 public function testGet()
 {
     $session = new NativeSession('__sentinel');
     $this->assertNull($session->get());
     $class = new stdClass();
     $class->foo = 'bar';
     $_SESSION['__sentinel'] = serialize($class);
     $this->assertEquals($class, $session->get());
     unset($_SESSION['__sentinel']);
 }