1 | <?php |
||
9 | class MissingCommand extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'autotrans:missing'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Translates all source translations that are not set in your target translations'; |
||
24 | |||
25 | protected $autoTranslator; |
||
26 | |||
27 | /** |
||
28 | * Create a new command instance. |
||
29 | * |
||
30 | * @return void |
||
|
|||
31 | */ |
||
32 | public function __construct(AutoTranslate $autoTranslator) |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function handle() |
||
69 | } |
||
70 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.