<?php

namespace NoahVet\Reef\RabbitMQ\Message\Handler;

abstract class AbstractReefAMQPMessageHandler implements ReefAMQPMessageHandlerInterface
{
    /**
     * @return list<string>
     */
    protected function buildCommandLine(): array
    {
        return [
            $_SERVER['_'] ?? '/usr/local/bin/php',
            $_SERVER['PHP_SELF'] ?? 'bin/console',
            'reef:rabbitmq:handle-message',
        ];
    }
}
