private static function response(ContainerInterface $container): ResponseInterface
    {
        if (!$container->has(ResponseInterface::class)) {
            throw new InvalidArgumentException('Moon received an invalid response instance from the container');
        }

        return $container->get(ResponseInterface::class);
    }
private static function response(ContainerInterface $container): ResponseInterface
    {
        if (!$container->has(ResponseInterface::class)) {
            throw new InvalidArgumentException('Moon received an invalid response instance from the container');
        }

        return $container->get(ResponseInterface::class);
    }
private static function response ( ContainerInterface $ container ) : ResponseInterface { if ( ! $ container -> has ( ResponseInterface :: class ) ) { throw new InvalidArgumentException ( 'Moon received an invalid response instance from the container' ) ; } return $ container -> get ( ResponseInterface :: class ) ; }
Return an instance of the ResponseInterface.

@throws ContainerExceptionInterface
@throws InvalidArgumentException
@throws NotFoundExceptionInterface
Return an instance of the ResponseInterface .