Issues (125)

src/OpenApi/OpenApiDocumentManagerInterface.php (3 issues)

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
The doc comment array<array-key, RouteInterface> at position 2 could not be parsed: Unknown type name 'array-key' at position 2 in array<array-key, RouteInterface>.
Loading history...
26
     *
27
     * @return array<array-key, mixed>
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<array-key, mixed> at position 2 could not be parsed: Unknown type name 'array-key' at position 2 in array<array-key, mixed>.
Loading history...
28
     */
29
    public function buildDocument(array $routes): array;
30
31
    /**
32
     * @param array<array-key, mixed> $document
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<array-key, mixed> at position 2 could not be parsed: Unknown type name 'array-key' at position 2 in array<array-key, mixed>.
Loading history...
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