public function setEventEmitter($emitter = null)
    {
        if ($emitter === null) {
            $this->eventEmitter = new Emitter();
        } else {
            $this->eventEmitter = $emitter;
        }
    }
public function setEventEmitter($emitter = null)
    {
        if ($emitter === null) {
            $this->eventEmitter = new Emitter();
        } else {
            $this->eventEmitter = $emitter;
        }
    }
public function setEventEmitter ( $ emitter = null ) { if ( $ emitter === null ) { $ this -> eventEmitter = new Emitter ( ) ; } else { $ this -> eventEmitter = $ emitter ; } }
Set an event emitter

@param object $emitter Event emitter object
Set an event emitter