src/PAMI/Message/Response/ResponseMessage.php
public function addEvent(EventMessage $event)
    {
        $this->events[] = $event;
        if (stristr($event->getEventList(), 'complete') !== false
            || stristr($event->getName(), 'complete') !== false
            || stristr($event->getName(), 'DBGetResponse') !== false
        ) {
            $this->completed = true;
        }
    }
public function addEvent(EventMessage $event)
    {
        $this->events[] = $event;
        if (stristr($event->getEventList(), 'complete') !== false
            || stristr($event->getName(), 'complete') !== false
            || stristr($event->getName(), 'DBGetResponse') !== false
        ) {
            $this->completed = true;
        }
    }
public function addEvent ( EventMessage $ event ) { $ this -> events [ ] = $ event ; if ( stristr ( $ event -> getEventList ( ) , 'complete' ) !== false || stristr ( $ event -> getName ( ) , 'complete' ) !== false || stristr ( $ event -> getName ( ) , 'DBGetResponse' ) !== false ) { $ this -> completed = true ; } }
Adds an event to this response.

@param EventMessage $event Child event to add.

@return void
Adds an event to this response .