public function get($strict=FALSE) 
    {
      if ($strict && $this->dispatched)
        throw new \CatapultApiException("Already got data from packet");	

      $this->dispatched = true;

      if ($this->is_string())
          return $this->data[0];

      return $this->data;
    }
public function get($strict=FALSE) 
    {
      if ($strict && $this->dispatched)
        throw new \CatapultApiException("Already got data from packet");	

      $this->dispatched = true;

      if ($this->is_string())
          return $this->data[0];

      return $this->data;
    }
public function get ( $ strict = FALSE ) { if ( $ strict && $ this -> dispatched ) throw new \ CatapultApiException ( "Already got data from packet" ) ; $ this -> dispatched = true ; if ( $ this -> is_string ( ) ) return $ this -> data [ 0 ] ; return $ this -> data ; }
Get the stored datapacket when
this is done the data is considered to be dispatched

@param strict -> strict or not if it is
data packet cant be retrieved twice.
Get the stored datapacket when this is done the data is considered to be dispatched