public function registerRoute(string $messageClass, Endpoint $endpoint): void
    {
        $this->routes[$messageClass][] = $endpoint;
    }
public function registerRoute(string $messageClass, Endpoint $endpoint): void
    {
        $this->routes[$messageClass][] = $endpoint;
    }
public function registerRoute ( string $ messageClass , Endpoint $ endpoint ) : void { $ this -> routes [ $ messageClass ] [ ] = $ endpoint ; }
Add custom endpoint to specified message.

@psalm-param class-string $messageClass

@param string   $messageClass
@param Endpoint $endpoint

@return void
Add custom endpoint to specified message .