Total Complexity | 2 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class TypeValue implements \JsonSerializable |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | public $id; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | public $value; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | public $synonyms; |
||
21 | |||
22 | /** |
||
23 | * @param string $id |
||
24 | * @param string $value |
||
25 | * @param array $synonyms |
||
26 | * |
||
27 | * @return TypeValue |
||
28 | */ |
||
29 | 3 | public static function create(string $id, string $value, array $synonyms = []): self |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 3 | public function jsonSerialize() |
|
54 |