Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
AuthorityLocation | |
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 AuthorityLocation extends Base |
6 | { |
7 | protected $fieldMapping = [ |
8 | 'authority_id' => 'authority_id', |
9 | 'id' => 'location_id', |
10 | 'locale' => 'locale' |
11 | ]; |
12 | |
13 | public function deleteEntity(): bool |
14 | { |
15 | try { |
16 | return $this->deleteWith( |
17 | array_combine( |
18 | ['authority_id', 'location_id', 'locale'], |
19 | array_values($this->get(['authority_id', 'id', 'locale'])) |
20 | ) |
21 | ); |
22 | } catch (\Exception $e) { |
23 | throw $e; |
24 | } |
25 | } |
26 | } |