src/Segment.php
public function all()
    {
        $this->resumeOrStartSession();
        return isset($_SESSION[$this->name])
             ? $_SESSION[$this->name]
             : [];
    }
public function all()
    {
        $this->resumeOrStartSession();
        return isset($_SESSION[$this->name])
             ? $_SESSION[$this->name]
             : [];
    }
public function all ( ) { $ this -> resumeOrStartSession ( ) ; return isset ( $ _SESSION [ $ this -> name ] ) ? $ _SESSION [ $ this -> name ] : [ ] ; }
Get all of the session data.

@return array
Get all of the session data .