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 RuntimeException; |
||
| 17 | use Sunrise\Http\Router\RouteInterface; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @since 3.0.0 |
||
| 21 | */ |
||
| 22 | interface OpenApiDocumentManagerInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @param array<array-key, RouteInterface> $routes |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 26 | * |
||
| 27 | * @return array<array-key, mixed> |
||
|
0 ignored issues
–
show
|
|||
| 28 | */ |
||
| 29 | public function buildDocument(array $routes): array; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param array<array-key, mixed> $document |
||
|
0 ignored issues
–
show
|
|||
| 33 | * |
||
| 34 | * @throws RuntimeException |
||
| 35 | */ |
||
| 36 | public function saveDocument(array $document): void; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return resource |
||
| 40 | * |
||
| 41 | * @throws RuntimeException |
||
| 42 | */ |
||
| 43 | public function openDocument(); |
||
| 44 | } |
||
| 45 |