@@ 310-312 (lines=3) @@ | ||
307 | protected function readLinks($resource, $relationshipName, array $description, $isShowSelf, $isShowRelated) |
|
308 | { |
|
309 | $links = $this->getValue($description, self::LINKS, []); |
|
310 | if ($isShowSelf === true && isset($links[LinkInterface::SELF]) === false) { |
|
311 | $links[LinkInterface::SELF] = $this->getRelationshipSelfLink($resource, $relationshipName); |
|
312 | } |
|
313 | if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) { |
|
314 | $links[LinkInterface::RELATED] = $this->getRelationshipRelatedLink($resource, $relationshipName); |
|
315 | } |
|
@@ 313-315 (lines=3) @@ | ||
310 | if ($isShowSelf === true && isset($links[LinkInterface::SELF]) === false) { |
|
311 | $links[LinkInterface::SELF] = $this->getRelationshipSelfLink($resource, $relationshipName); |
|
312 | } |
|
313 | if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) { |
|
314 | $links[LinkInterface::RELATED] = $this->getRelationshipRelatedLink($resource, $relationshipName); |
|
315 | } |
|
316 | ||
317 | return $links; |
|
318 | } |