| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function getSupportedMethods(): array |
||
| 17 | { |
||
| 18 | $methodMap = [ |
||
| 19 | SupportsDeleteRequests::class => new DeleteRequestMethod(), |
||
| 20 | SupportsGetRequests::class => new GetRequestMethod(), |
||
| 21 | SupportsPatchRequests::class => new PatchRequestMethod(), |
||
| 22 | SupportsPostRequests::class => new PostRequestMethod(), |
||
| 23 | SupportsPutRequests::class => new PutRequestMethod() |
||
| 24 | ]; |
||
| 25 | |||
| 26 | $implementedInterfaces = class_implements($this); |
||
| 27 | return array_values(array_intersect_key($methodMap, $implementedInterfaces)); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |