| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 33 | 6 | public function link(EndpointIdentifier $endpoint, $params = []) |
|
| 34 | { |
||
| 35 | 6 | $params = array_merge([ |
|
| 36 | 6 | 'version' => $endpoint->getVersion(), |
|
| 37 | 6 | 'package' => $endpoint->getPackage(), |
|
| 38 | 6 | 'apiAction' => $endpoint->getApiAction() |
|
| 39 | 6 | ], $params); |
|
| 40 | 6 | return $this->linkGenerator->link('Api:Api:default', $params); |
|
| 41 | } |
||
| 42 | } |
||
| 43 |