♻️ Replace App\Model with App\Data

This commit is contained in:
Dan Jones 2022-08-19 19:52:56 -05:00
commit 7f4f005302
12 changed files with 393 additions and 222 deletions

View file

@ -2,8 +2,8 @@
namespace App\Commands;
use App\Data\InputData;
use App\Exceptions\Quit;
use App\Models\Input;
use App\Services\ProcessInput;
use Symfony\Component\Console\Output\OutputInterface;
@ -31,8 +31,8 @@ class GetShow extends Command
return static::SUCCESS;
}
protected function getInput(): Input
protected function getInput(): InputData
{
return (new Input($this->options()))->assertValid();
return InputData::from($this->options())->assertValid();
}
}