Lines 0.00% 0 / 8
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
AuthorityService 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
3namespace BO\Zmsdldb\Importer\MySQL\Entity;
4
5class AuthorityService extends Base
6{
7    protected array $fieldMapping = [
8        'service_id' => 'service_id',
9        'id' => 'authority_id',
10        'locale' => 'locale'
11    ];
12
13    #[\Override]
14    public function deleteEntity(): void
15    {
16        try {
17            $this->deleteWith(
18                array_combine(
19                    ['service_id', 'authority_id', 'locale'],
20                    array_values($this->get(['service_id', 'id', 'locale']))
21                )
22            );
23        } catch (\Exception $e) {
24            throw $e;
25        }
26    }
27}