Conditions | 4 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function current() |
||
52 | { |
||
53 | $result = parent::current(); |
||
54 | if (!$result) { |
||
55 | return $result; |
||
56 | } |
||
57 | |||
58 | $result->setParent( |
||
59 | array_key_exists($result->getParentUuid(), $this->parents) ? $this->parents[$result->getParentUuid()] : null |
||
60 | ); |
||
61 | |||
62 | $result->setCreator( |
||
63 | array_key_exists($result->getCreatorId(), $this->creators) ? $this->creators[$result->getCreatorId()] : null |
||
64 | ); |
||
65 | |||
66 | return $result; |
||
67 | } |
||
68 | } |
||
69 |