Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 4 | protected function addEntries(): void |
|
21 | { |
||
22 | 4 | $this->addEntry('id', IEntryType::TYPE_INTEGER, 2048); |
|
23 | 4 | $this->addEntry('childId', IEntryType::TYPE_INTEGER, 2048); |
|
24 | 4 | $this->addEntry('parentId', IEntryType::TYPE_INTEGER, 2048); |
|
25 | 4 | $this->addEntry('parents', IEntryType::TYPE_ARRAY); // FK - makes the array of entries every time |
|
26 | 4 | $this->addEntry('children', IEntryType::TYPE_ARRAY); // FK - makes the array of entries every time |
|
27 | 4 | $this->setMapper($this->getMapperClass()); |
|
28 | 4 | } |
|
39 |