1 | <?php |
||
21 | class TestCommand extends Command |
||
22 | { |
||
23 | /** |
||
24 | * Test working path. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $workingPath; |
||
29 | |||
30 | /** |
||
31 | * Create a new command instance. |
||
32 | * |
||
33 | * @param string $workingPath |
||
34 | */ |
||
35 | public function __construct(string $workingPath) |
||
41 | |||
42 | /** |
||
43 | * Configure the command options. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | protected function configure() |
||
55 | |||
56 | /** |
||
57 | * Execute the command. |
||
58 | * |
||
59 | * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException |
||
60 | * |
||
61 | * @return int 0 if everything went fine, or an exit code |
||
62 | */ |
||
63 | protected function execute(InputInterface $input, OutputInterface $output) |
||
73 | } |
||
74 |