Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
19 | class EnumValueDefinition implements |
||
20 | DefinitionInterface, |
||
21 | DeprecateInterface |
||
22 | { |
||
23 | use DefinitionTrait; |
||
24 | use DeprecateTrait; |
||
25 | |||
26 | /** |
||
27 | * @var mixed |
||
28 | */ |
||
29 | protected $value; |
||
30 | |||
31 | /** |
||
32 | * EnumValueDefinition constructor. |
||
33 | * |
||
34 | * @param string $value |
||
35 | * @param string $description |
||
36 | */ |
||
37 | 1 | public function __construct(string $value = null, string $description = null) |
|
38 | { |
||
39 | 1 | $this->value = $value; |
|
40 | 1 | $this->description = $description; |
|
41 | 1 | } |
|
42 | |||
43 | /** |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function getValue() |
||
47 | { |
||
48 | return $this->value; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param mixed $value |
||
53 | */ |
||
54 | public function setValue($value) |
||
57 | } |
||
58 | } |
||
59 |