public function get(string $id)
    {
        return $this->has($id) ? $this->data[$id] : null;
    }
public function get(string $id)
    {
        return $this->has($id) ? $this->data[$id] : null;
    }
public function get ( string $ id ) { return $ this -> has ( $ id ) ? $ this -> data [ $ id ] : null ; }
Get an item from the session.

@param string $id The item id

@return mixed
Get an item from the session .