Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function getPrimaryKeysValues(): array |
||
44 | { |
||
45 | $primaryKeys = $this->getPrimaryKeys(); |
||
46 | $columnMap = $this->getColumnMap(); |
||
47 | |||
48 | $ret = []; |
||
49 | |||
50 | foreach ($primaryKeys as $primaryKey) { |
||
51 | $attributeField = $columnMap[$primaryKey] ?? $primaryKey; |
||
52 | $ret [$attributeField] = $this->getAttribute($attributeField); |
||
53 | } |
||
54 | |||
55 | return $ret; |
||
56 | } |
||
58 |