| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function getEndpoints(Model $model = null): array |
||
| 46 | { |
||
| 47 | $parameterResolver = new ParameterResolver($model, $this->parameters); |
||
| 48 | |||
| 49 | $action = action("\\{$this->route->getActionName()}", $parameterResolver->forRoute($this->route)); |
||
| 50 | |||
| 51 | return [ |
||
| 52 | $this->resolveName() => [ |
||
| 53 | 'method' => $this->httpVerb ?? $this->getHttpVerbForRoute($this->route), |
||
| 54 | 'action' => $action, |
||
| 55 | ], |
||
| 56 | ]; |
||
| 57 | } |
||
| 58 | |||
| 81 |