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