<?php

namespace NoahVet\Reef\RabbitMQ\Task\Factory;

use NoahVet\Reef\RabbitMQ\Task\ConsoleCommandTask;
use NoahVet\Reef\RabbitMQ\Task\InternalTaskInterface;
use Symfony\Component\Console\Command\Command;

class ConsoleCommandTaskFactory implements ConsoleCommandTaskFactoryInterface
{
    #[\Override]
    public function create(
        Command $command,
        array $arguments,
    ): InternalTaskInterface {
        return new ConsoleCommandTask($command, $arguments);
    }
}
