Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
6 | class EnumDefinition |
||
7 | { |
||
8 | /** @var string|int */ |
||
9 | public $value; |
||
10 | |||
11 | public string $label; |
||
12 | |||
13 | private string $methodName; |
||
14 | |||
15 | /** |
||
16 | * @param string $methodName |
||
17 | * @param string|int $value |
||
18 | * @param string $label |
||
19 | */ |
||
20 | public function __construct(string $methodName, $value, string $label) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param string|int $input |
||
29 | * |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function equals($input): bool |
||
45 |