Total Complexity | 2 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
31 | final class Example extends AbstractAnnotation implements ExampleInterface, ComponentObjectInterface |
||
32 | { |
||
33 | |||
34 | /** |
||
35 | * {@inheritDoc} |
||
36 | */ |
||
37 | protected const IGNORE_FIELDS = ['refName']; |
||
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | protected const FIELD_ALIASES = ['anyValue' => 'value']; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | public $refName; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | * |
||
52 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-examplesummary |
||
53 | */ |
||
54 | public $summary; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | * |
||
59 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-exampledescription |
||
60 | */ |
||
61 | public $description; |
||
62 | |||
63 | /** |
||
64 | * This property cannot be named as "value" because the name is reserved by the Doctrine Annotations Library. |
||
65 | * |
||
66 | * @see https://github.com/doctrine/annotations/blob/b4fde48ffe28bf766077f8d41b5d23049a0687a8/lib/Doctrine/Common/Annotations/DocParser.php#L786 |
||
67 | * |
||
68 | * @var mixed |
||
69 | * |
||
70 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-examplevalue |
||
71 | */ |
||
72 | public $anyValue; |
||
73 | |||
74 | /** |
||
75 | * @var string |
||
76 | * |
||
77 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-exampleexternalvalue |
||
78 | */ |
||
79 | public $externalValue; |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | 1 | public function getComponentName() : string |
|
87 | } |
||
88 | |||
89 | /** |
||
90 | * {@inheritDoc} |
||
91 | */ |
||
92 | 2 | public function getReferenceName() : string |
|
97 |