Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ServiceInformation | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| deleteEntity | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsdldb\Importer\MySQL\Entity; |
| 4 | |
| 5 | class ServiceInformation extends Base |
| 6 | { |
| 7 | protected $fieldMapping = [ |
| 8 | 'service_id' => 'service_id', |
| 9 | 'locale' => 'locale', |
| 10 | 'name' => 'name', |
| 11 | 'description' => 'description', |
| 12 | 'link' => 'link', |
| 13 | 'type' => 'type', |
| 14 | 'sort' => 'sort' |
| 15 | ]; |
| 16 | |
| 17 | public function deleteEntity(): bool |
| 18 | { |
| 19 | try { |
| 20 | return $this->deleteWith( |
| 21 | array_combine( |
| 22 | ['service_id', 'locale', 'type'], |
| 23 | array_values($this->get('service_id', 'locale', 'type')) |
| 24 | ) |
| 25 | ); |
| 26 | } catch (\Exception $e) { |
| 27 | throw $e; |
| 28 | } |
| 29 | } |
| 30 | } |