Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0078 |
Changes | 0 |
1 | <?php |
||
26 | 1 | public function initFromRelation($relation) |
|
27 | { |
||
28 | 1 | $this->setWithRelation($relation); |
|
29 | 1 | $this->setManager($relation->getWith()); |
|
30 | 1 | $this->setItem($relation->getItem()); |
|
31 | 1 | $indexKey = $relation->getParam('indexKey'); |
|
32 | 1 | if ($indexKey) { |
|
33 | $this->setIndexKey($indexKey); |
||
34 | } |
||
35 | 1 | } |
|
36 | |||
74 |