| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 5 | public function getLinks() |
|
| 30 | { |
||
| 31 | 5 | $selfLink = $this->getSelfLink(); |
|
| 32 | |||
| 33 | 5 | return array_merge($this->getContractLinks(), [ |
|
| 34 | 5 | 'sections' => $selfLink . '/section', |
|
| 35 | 'curies' => [ |
||
| 36 | 5 | new Link([ |
|
| 37 | 5 | 'name' => 'embeddable', |
|
| 38 | 5 | 'href' => Url::to($selfLink, ['expand' => '{rel}']), |
|
|
|
|||
| 39 | 5 | 'title' => 'Embeddable and not Nestable related resources.', |
|
| 40 | ]), |
||
| 41 | ], |
||
| 42 | 5 | 'embeddable:sections' => 'sections', |
|
| 43 | ]); |
||
| 74 |