public function handle(DomainEvent $event) : void {
        $method = lcfirst($this->getShortName($event));
        if (method_exists($this, $method)) {
            $this->$method($event);
        }
    }
public function handle(DomainEvent $event) : void {
        $method = lcfirst($this->getShortName($event));
        if (method_exists($this, $method)) {
            $this->$method($event);
        }
    }
public function handle ( DomainEvent $ event ) : void { $ method = lcfirst ( $ this -> getShortName ( $ event ) ) ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ event ) ; } }
receives domain events and routes them to a method with their name

@param DomainEvent $event
receives domain events and routes them to a method with their name