comparison src/Generator/Requests/RequestGenerator.php @ 22:ee8ef14e158d main-dev

Now able to include through composer
author Luka Sitas <sitas.luka.97@gmail.com>
date Wed, 26 Feb 2025 20:12:17 -0500
parents 81a76472ba21
children 827efbf4d73c
comparison
equal deleted inserted replaced
21:f0b0d014e448 22:ee8ef14e158d
61 /** 61 /**
62 * Get the console command options. 62 * Get the console command options.
63 * 63 *
64 * @return array 64 * @return array
65 */ 65 */
66 protected function getOptions() 66 protected function getOptions():array
67 { 67 {
68 return array_merge(parent::getOptions(), [ 68 return array_merge(parent::getOptions(), [
69 ['all', 'a', InputOption::VALUE_NONE, 'Generate all request classes for the table.'], 69 ['all', 'a', InputOption::VALUE_NONE, 'Generate all request classes for the table.'],
70 ['store_request', 's', InputOption::VALUE_NONE, 'Generate store request class for the table.'], 70 ['store_request', 's', InputOption::VALUE_NONE, 'Generate store request class for the table.'],
71 ['update_request', 'u', InputOption::VALUE_NONE, 'Generate update request class for the table.'], 71 ['update_request', 'u', InputOption::VALUE_NONE, 'Generate update request class for the table.'],
75 /** 75 /**
76 * Interact further with the user if they were prompted for missing arguments. 76 * Interact further with the user if they were prompted for missing arguments.
77 * 77 *
78 * @return void 78 * @return void
79 */ 79 */
80 protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) 80 protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output):void
81 { 81 {
82 } 82 }
83 83
84 /** 84 /**
85 * Get the stub file for the generator. 85 * Get the stub file for the generator.