sunrise-php /
http-router
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * It's free open-source software released under the MIT License. |
||
| 5 | * |
||
| 6 | * @author Anatoly Nekhay <[email protected]> |
||
| 7 | * @copyright Copyright (c) 2018, Anatoly Nekhay |
||
| 8 | * @license https://github.com/sunrise-php/http-router/blob/master/LICENSE |
||
| 9 | * @link https://github.com/sunrise-php/http-router |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Sunrise\Http\Router\OpenApi; |
||
| 15 | |||
| 16 | use ReflectionClass; |
||
| 17 | use ReflectionMethod; |
||
| 18 | use Sunrise\Http\Router\RouteInterface; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @since 3.0.0 |
||
| 22 | */ |
||
| 23 | interface OpenApiOperationEnricherInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @param ReflectionClass<object>|ReflectionMethod $requestHandler |
||
| 27 | * @param array<array-key, mixed> $operation |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 28 | * @param-out array<array-key, mixed> $operation |
||
| 29 | */ |
||
| 30 | public function enrichOperation( |
||
| 31 | RouteInterface $route, |
||
| 32 | ReflectionClass|ReflectionMethod $requestHandler, |
||
| 33 | array &$operation, |
||
| 34 | ): void; |
||
| 35 | |||
| 36 | public function getWeight(): int; |
||
| 37 | } |
||
| 38 |