Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function create($object, SerializationContext $context) |
||
49 | { |
||
50 | $links = array(); |
||
51 | foreach ($this->relationsRepository->getRelations($object) as $relation) { |
||
52 | if ($this->exclusionManager->shouldSkipLink($object, $relation, $context)) { |
||
53 | continue; |
||
54 | } |
||
55 | |||
56 | $links[] = $this->linkFactory->createLink($object, $relation); |
||
57 | } |
||
58 | |||
59 | return $links; |
||
60 | } |
||
61 | } |
||
62 |