|
@@ 128-136 (lines=9) @@
|
| 125 |
|
/** |
| 126 |
|
* @inheritdoc |
| 127 |
|
*/ |
| 128 |
|
public function withRelationshipSelfLink($resource, $relationshipName, $meta = null, $treatAsHref = false) |
| 129 |
|
{ |
| 130 |
|
$link = $this->getContainer()->getSchema($resource) |
| 131 |
|
->getRelationshipSelfLink($resource, $relationshipName, $meta, $treatAsHref); |
| 132 |
|
|
| 133 |
|
return $this->withLinks([ |
| 134 |
|
DocumentInterface::KEYWORD_SELF => $link, |
| 135 |
|
]); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
/** |
| 139 |
|
* @inheritdoc |
|
@@ 141-149 (lines=9) @@
|
| 138 |
|
/** |
| 139 |
|
* @inheritdoc |
| 140 |
|
*/ |
| 141 |
|
public function withRelationshipRelatedLink($resource, $relationshipName, $meta = null, $treatAsHref = false) |
| 142 |
|
{ |
| 143 |
|
$link = $this->getContainer()->getSchema($resource) |
| 144 |
|
->getRelationshipRelatedLink($resource, $relationshipName, $meta, $treatAsHref); |
| 145 |
|
|
| 146 |
|
return $this->withLinks([ |
| 147 |
|
DocumentInterface::KEYWORD_RELATED => $link, |
| 148 |
|
]); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
/** |
| 152 |
|
* @inheritdoc |