| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | class Server extends AbstractObject |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | * |
||
| 25 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-serverurl |
||
| 26 | */ |
||
| 27 | protected $url; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | * |
||
| 32 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-serverdescription |
||
| 33 | */ |
||
| 34 | protected $description; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var ServerVariable[] |
||
| 38 | * |
||
| 39 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-servervariables |
||
| 40 | */ |
||
| 41 | protected $variables = []; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $url |
||
| 45 | */ |
||
| 46 | public function __construct(string $url) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $description |
||
| 53 | * |
||
| 54 | * @return void |
||
| 55 | */ |
||
| 56 | public function setDescription(string $description) : void |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param ServerVariable ...$variables |
||
| 63 | * |
||
| 64 | * @return void |
||
| 65 | */ |
||
| 66 | public function addVariable(ServerVariable ...$variables) : void |
||
| 73 |