| Total Complexity | 4 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | class ServerVariable extends AbstractObject |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string[] |
||
| 29 | * |
||
| 30 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-servervariableenum |
||
| 31 | */ |
||
| 32 | protected $enum; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | * |
||
| 37 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-servervariabledefault |
||
| 38 | */ |
||
| 39 | protected $default; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string |
||
| 43 | * |
||
| 44 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-servervariabledescription |
||
| 45 | */ |
||
| 46 | protected $description; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $name |
||
| 50 | * @param string $default |
||
| 51 | */ |
||
| 52 | public function __construct(string $name, string $default) |
||
| 53 | { |
||
| 54 | $this->name = $name; |
||
| 55 | $this->default = $default; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getName() : string |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param string ...$enum |
||
| 68 | * |
||
| 69 | * @return void |
||
| 70 | */ |
||
| 71 | public function setEnum(string ...$enum) : void |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @param string $description |
||
| 78 | * |
||
| 79 | * @return void |
||
| 80 | */ |
||
| 81 | public function setDescription(string $description) : void |
||
| 84 | } |
||
| 85 | } |
||
| 86 |