public function registerRoutes(array $messages, Endpoint $endpoint): void
    {
        foreach ($messages as $message)
        {
            $this->registerRoute($message, $endpoint);
        }
    }
public function registerRoutes(array $messages, Endpoint $endpoint): void
    {
        foreach ($messages as $message)
        {
            $this->registerRoute($message, $endpoint);
        }
    }
public function registerRoutes ( array $ messages , Endpoint $ endpoint ) : void { foreach ( $ messages as $ message ) { $ this -> registerRoute ( $ message , $ endpoint ) ; } }
Add custom endpoint for multiple messages.

@psalm-param array<array-key, class-string>    $messages

@param string[] $messages
@param Endpoint $endpoint

@return void
Add custom endpoint for multiple messages .