public function setLastEvent($name, $data = null)
    {
        $this->lastEvent = array(
            'name' => $name,
            'data' => $data
        );
        $this->notify();
    }
public function setLastEvent($name, $data = null)
    {
        $this->lastEvent = array(
            'name' => $name,
            'data' => $data
        );
        $this->notify();
    }
public function setLastEvent ( $ name , $ data = null ) { $ this -> lastEvent = array ( 'name' => $ name , 'data' => $ data ) ; $ this -> notify ( ) ; }
Sets the last event

Adapters should use this method to set the current state of the request
and notify the observers.

@param string $name event name
@param mixed  $data event data
Sets the last event