Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Tag implements ValueObjectInterface |
||
14 | { |
||
15 | use CompositeValueObjectWithExtension; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $name; |
||
21 | |||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | private $description; |
||
26 | |||
27 | /** |
||
28 | * @var ExternalDocs|null |
||
29 | */ |
||
30 | private $externalDocs; |
||
31 | |||
32 | public function __construct(string $name) |
||
33 | { |
||
34 | $this->name = $name; |
||
35 | $this->specificationExtension = new SpecificationExtension([]); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getName(): string |
||
42 | { |
||
43 | return $this->name; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string|null |
||
48 | */ |
||
49 | public function getDescription(): ?string |
||
50 | { |
||
51 | return $this->description; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return ExternalDocs|null |
||
56 | */ |
||
57 | public function getExternalDocs(): ?ExternalDocs |
||
60 | } |
||
61 | } |