Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | trait CommandTrait |
||
11 | { |
||
12 | use AbstractTrait; |
||
13 | |||
14 | /** |
||
15 | * Get the facade |
||
16 | * |
||
17 | * @return CommandFacade |
||
18 | */ |
||
19 | protected function commandFacade(): CommandFacade |
||
20 | { |
||
21 | return $this->di()->g(CommandFacade::class); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Prepare a query |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function prepareCommand() |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Execute a query |
||
36 | * |
||
37 | * @param string $query The query to be executed |
||
38 | * @param int $limit The max number of rows to return |
||
39 | * @param bool $errorStops Stop executing the requests in case of error |
||
40 | * @param bool $onlyErrors Return only errors |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function executeCommands(string $query, int $limit, bool $errorStops, bool $onlyErrors): array |
||
50 |