1 | <?php |
||
19 | class ExcelPrepare extends Command |
||
20 | { |
||
21 | /** |
||
22 | * The name and signature of the console command. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $signature = 'simport:finder:excell'; |
||
27 | |||
28 | /** |
||
29 | * The console command description. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $description = 'Importar a porra toda !'; |
||
34 | |||
35 | /** |
||
36 | * The console command description. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $folder = 'import'; |
||
41 | |||
42 | /** |
||
43 | * Create a new command instance. |
||
44 | * |
||
45 | * @return void |
||
|
|||
46 | */ |
||
47 | public function __construct() |
||
51 | |||
52 | /** |
||
53 | * Execute the console command. |
||
54 | * |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function handle() |
||
61 | |||
62 | /** |
||
63 | * Tirardaqui |
||
64 | */ |
||
65 | public function importFromFolder($folder) |
||
109 | |||
110 | |||
111 | // $name = $this->ask('Enter the admin name'); |
||
112 | // $password = $this->secret('Enter admin password'); |
||
113 | // $confirmPassword = $this->secret('Confirm Password'); |
||
114 | |||
115 | // // Ask for email if there wasnt set one |
||
116 | // if (!$email) { |
||
117 | // $email = $this->ask('Enter the admin email'); |
||
118 | // } |
||
119 | |||
120 | // // Passwords don't match |
||
121 | // if ($password != $confirmPassword) { |
||
122 | // $this->info("Passwords don't match"); |
||
123 | |||
124 | // return; |
||
125 | // } |
||
126 | |||
127 | // $this->info('Creating admin account'); |
||
128 | |||
129 | |||
130 | } |
||
131 |
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.