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