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