public function emitBufferedEvents()
    {
        $result = [];

        while ($event = array_shift($this->bufferedEvents)) {
            $result[] = parent::emit($event);
        }

        return $result;
    }
public function emitBufferedEvents()
    {
        $result = [];

        while ($event = array_shift($this->bufferedEvents)) {
            $result[] = parent::emit($event);
        }

        return $result;
    }
public function emitBufferedEvents ( ) { $ result = [ ] ; while ( $ event = array_shift ( $ this -> bufferedEvents ) ) { $ result [ ] = parent :: emit ( $ event ) ; } return $ result ; }
Emit the buffered events.

@return array
Emit the buffered events .