| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function addHalLink(array $body, array $methodAnnotations, Hal $hal) : Hal |
||
| 28 | { |
||
| 29 | if (! empty($methodAnnotations)) { |
||
| 30 | $hal = $this->linkAnnotation($body, $methodAnnotations, $hal); |
||
| 31 | } |
||
| 32 | if (isset($body['_links'])) { |
||
| 33 | $hal = $this->bodyLink($body, $hal); |
||
| 34 | } |
||
| 35 | |||
| 36 | return $hal; |
||
| 37 | } |
||
| 38 | |||
| 68 |