1 | <?php |
||
9 | class Mysql extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The console command name. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $name = 'mysql'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'mysql console'; |
||
24 | |||
25 | /** |
||
26 | * $connection. |
||
27 | * |
||
28 | * @var \Illuminate\Database\DatabaseManager |
||
29 | */ |
||
30 | protected $databaseManager; |
||
31 | |||
32 | /** |
||
33 | * __construct. |
||
34 | * |
||
35 | * @param \Illuminate\Database\DatabaseManager $databaseManager |
||
36 | */ |
||
37 | 1 | public function __construct(DatabaseManager $databaseManager) |
|
43 | |||
44 | /** |
||
45 | * Handle the command. |
||
46 | * |
||
47 | * @throws \InvalidArgumentException |
||
48 | */ |
||
49 | 1 | public function handle() |
|
57 | |||
58 | /** |
||
59 | * castArray. |
||
60 | * |
||
61 | * @param stdClass[] $rows |
||
62 | * @return void |
||
63 | */ |
||
64 | 1 | protected function castArray($rows) |
|
70 | |||
71 | /** |
||
72 | * Get the console command options. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | 1 | protected function getOptions() |
|
83 | } |
||
84 |