Ejemplo n.º 1
0
 /**
  * Every time getNext() is called, a new object will be parsed, until we
  * hit the end of the stream.
  *
  * When the end is reached, null will be returned.
  *
  * @return SabreForRainLoop\VObject\Component|null
  */
 public function getNext()
 {
     try {
         $object = $this->parser->parse();
     } catch (VObject\EofException $e) {
         return null;
     }
     return $object;
 }