| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait ImportTrait |
||
| 11 | { |
||
| 12 | use AbstractTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Get the facade |
||
| 16 | * |
||
| 17 | * @return ImportFacade |
||
| 18 | */ |
||
| 19 | protected function importFacade(): ImportFacade |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get data for import |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function getImportOptions(): array |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Run queries from uploaded files |
||
| 38 | * |
||
| 39 | * @param array $files The uploaded files |
||
| 40 | * @param bool $errorStops Stop executing the requests in case of error |
||
| 41 | * @param bool $onlyErrors Return only errors |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function executeSqlFiles(array $files, bool $errorStops, bool $onlyErrors): array |
||
| 51 |