Total Complexity | 1 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Server extends AbstractObject implements ExtensibleInterface |
||
11 | { |
||
12 | /** |
||
13 | * REQUIRED. A URL to the target host. |
||
14 | * This URL supports Server Variables and MAY be relative, |
||
15 | * to indicate that the host location is relative to the location where the OpenAPI document is being served. |
||
16 | * Variable substitutions will be made when a variable is named in {brackets}. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | public $url; |
||
21 | |||
22 | /** |
||
23 | * An optional string describing the host designated by the URL. |
||
24 | * CommonMark syntax MAY be used for rich text representation. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $description; |
||
29 | |||
30 | /** |
||
31 | * A map between a variable name and its value. The value is used for substitution in the server's URL template. |
||
32 | * |
||
33 | * @var ServerVariable[] array<string, ServerVariable> |
||
34 | */ |
||
35 | public $variables; |
||
36 | |||
37 | /** |
||
38 | * @param string $url |
||
39 | * @param string|null $description |
||
40 | * @param array|null $variables |
||
41 | * @param array $additionalProperties |
||
42 | */ |
||
43 | 6 | public function __construct( |
|
55 |