Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class PedigreeRelateRecord extends ASimpleRecord |
||
19 | { |
||
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 | } |
|
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | * @codeCoverageIgnore used another one for testing |
||
33 | */ |
||
34 | protected function getMapperClass(): string |
||
37 | } |
||
38 | } |
||
39 |