protected function readLinks($resource, $relationshipName, array $description, $isShowSelf, $isShowRelated)
{
$links = $this->getValue($description, self::LINKS, []);
if ($isShowSelf === true && isset($links[LinkInterface::SELF]) === false) {
$links[LinkInterface::SELF] = $this->getRelationshipSelfLink($resource, $relationshipName);
}
if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) {
$links[LinkInterface::RELATED] = $this->getRelationshipRelatedLink($resource, $relationshipName);
}
return $links;
}