option('output')) { return base_path('stubs/dto.output.stub'); } return base_path('stubs/dto.input.stub'); } /** * Get the default namespace for the class. * * @param string $rootNamespace */ protected function getDefaultNamespace($rootNamespace): string { return $rootNamespace.'\Data'; } /** * Get the console command options. */ protected function getOptions(): array { return [ ['input', 'i', InputOption::VALUE_NONE, 'Generate an Input DTO (default)'], ['output', 'o', InputOption::VALUE_NONE, 'Generate an Output DTO'], ]; } }