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