<?php

namespace App\Torrentio\Action\Input;

use App\Torrentio\Action\Command\GetMovieOptionsCommand;
use OneToMany\RichBundle\Attribute\SourceRoute;
use OneToMany\RichBundle\Contract\CommandInterface;
use OneToMany\RichBundle\Contract\InputInterface;

class GetMovieOptionsInput implements InputInterface
{
    public function __construct(
        #[SourceRoute('tmdbId')]
        public string $tmdbId,

        #[SourceRoute('imdbId')]
        public string $imdbId,
    ) {}

    public function toCommand(): CommandInterface
    {
        return new GetMovieOptionsCommand($this->tmdbId, $this->imdbId);
    }
}
