|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Swis\Melvin\Enums; |
|
6
|
|
|
|
|
7
|
|
|
use MyCLabs\Enum\Enum; |
|
8
|
|
|
|
|
9
|
|
|
/** |
|
10
|
|
|
* @method static EventType UNKNOWN() |
|
11
|
|
|
* @method static EventType FAIR() |
|
12
|
|
|
* @method static EventType CONCERT() |
|
13
|
|
|
* @method static EventType FESTIVAL() |
|
14
|
|
|
* @method static EventType FUNFAIR() |
|
15
|
|
|
* @method static EventType MARKET() |
|
16
|
|
|
* @method static EventType MARATHON() |
|
17
|
|
|
* @method static EventType SPORTSMEETING() |
|
18
|
|
|
* @method static EventType FOOTBALLMATCH() |
|
19
|
|
|
* @method static EventType BICYCLERACE() |
|
20
|
|
|
* @method static EventType WATERSPORTSMEETING() |
|
21
|
|
|
* @method static EventType OTHER() |
|
22
|
|
|
*/ |
|
23
|
|
|
final class EventType extends Enum |
|
24
|
|
|
{ |
|
25
|
|
|
private const UNKNOWN = 'UNKNOWN'; |
|
26
|
|
|
private const FAIR = 'FAIR'; |
|
27
|
|
|
private const CONCERT = 'CONCERT'; |
|
28
|
|
|
private const FESTIVAL = 'FESTIVAL'; |
|
29
|
|
|
private const FUNFAIR = 'FUNFAIR'; |
|
30
|
|
|
private const MARKET = 'MARKET'; |
|
31
|
|
|
private const MARATHON = 'MARATHON'; |
|
32
|
|
|
private const SPORTSMEETING = 'SPORTSMEETING'; |
|
33
|
|
|
private const FOOTBALLMATCH = 'FOOTBALLMATCH'; |
|
34
|
|
|
private const BICYCLERACE = 'BICYCLERACE'; |
|
35
|
|
|
private const WATERSPORTSMEETING = 'WATERSPORTSMEETING'; |
|
36
|
|
|
private const OTHER = 'OTHER'; |
|
37
|
|
|
|
|
38
|
|
|
public function getLabel(): string |
|
39
|
|
|
{ |
|
40
|
|
|
return [ |
|
41
|
|
|
'UNKNOWN' => '', |
|
42
|
|
|
'FAIR' => 'Braderie', |
|
43
|
|
|
'CONCERT' => 'Concert', |
|
44
|
|
|
'FESTIVAL' => 'Festival', |
|
45
|
|
|
'FUNFAIR' => 'Kermis', |
|
46
|
|
|
'MARKET' => 'Markt', |
|
47
|
|
|
'MARATHON' => 'Marathon', |
|
48
|
|
|
'SPORTSMEETING' => 'Sportevenement', |
|
49
|
|
|
'FOOTBALLMATCH' => 'Voetbalwedstrijd', |
|
50
|
|
|
'BICYCLERACE' => 'Wielerronde', |
|
51
|
|
|
'WATERSPORTSMEETING' => 'Watersport evenement', |
|
52
|
|
|
'OTHER' => 'Overig', |
|
53
|
|
|
][$this->getKey()]; |
|
54
|
|
|
} |
|
55
|
|
|
} |
|
56
|
|
|
|