Total Complexity | 3 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | class Tag 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-tagname |
||
26 | */ |
||
27 | protected $name; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | * |
||
32 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-tagdescription |
||
33 | */ |
||
34 | protected $description; |
||
35 | |||
36 | /** |
||
37 | * @var ExternalDocumentation |
||
38 | * |
||
39 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-tagexternaldocs |
||
40 | */ |
||
41 | protected $externalDocs; |
||
42 | |||
43 | /** |
||
44 | * @param string $name |
||
45 | */ |
||
46 | public function __construct(string $name) |
||
47 | { |
||
48 | $this->name = $name; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param string $description |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function setDescription(string $description) : void |
||
57 | { |
||
58 | $this->description = $description; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @param ExternalDocumentation $externalDocs |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | public function setExternalDocs(ExternalDocumentation $externalDocs) : void |
||
69 | } |
||
70 | } |
||
71 |