| Total Complexity | 4 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ImportWards extends Command implements WithIntegerExitCode |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The name and signature of the console command. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $signature = "import:wards |
||
| 19 | {file_path : Path to file containing wards}"; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The console command description. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $description = "Import stage wards from file"; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var ImportService |
||
| 30 | */ |
||
| 31 | protected $importService; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Create a new command instance. |
||
| 35 | * |
||
| 36 | * @param ImportService $importService |
||
| 37 | */ |
||
| 38 | public function __construct(ImportService $importService) |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Execute the console command. |
||
| 47 | * |
||
| 48 | * @return int exit code |
||
| 49 | */ |
||
| 50 | public function handle() : int |
||
| 73 |