Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | enum LikeTypeEnum: string |
||
6 | { |
||
7 | case LIKE = 'like'; |
||
8 | case DISLIKE = 'dislike'; |
||
9 | case LOVE = 'love'; |
||
10 | |||
11 | /** |
||
12 | * Get the values of the enum. |
||
13 | * |
||
14 | * @return array<int, LikeTypeEnum> |
||
15 | */ |
||
16 | public static function getValues(): array |
||
17 | { |
||
18 | return [ |
||
19 | self::LIKE, |
||
20 | self::DISLIKE, |
||
21 | self::LOVE, |
||
22 | ]; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Get the values of the enum as strings. |
||
27 | * |
||
28 | * @return array<string> |
||
29 | */ |
||
30 | public static function getValuesAsStrings(): array |
||
36 | ]; |
||
37 | } |
||
39 |