| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | } |
||
| 74 |