|
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 RoadManagementType UNKNOWN() |
|
11
|
|
|
* @method static RoadManagementType SPEED_RESTRICTION() |
|
12
|
|
|
* @method static RoadManagementType DISPLACEMENT() |
|
13
|
|
|
* @method static RoadManagementType NARROW_LANES() |
|
14
|
|
|
* @method static RoadManagementType CLOSURES() |
|
15
|
|
|
* @method static RoadManagementType CLOSED_LANES() |
|
16
|
|
|
* @method static RoadManagementType ROAD_CLOSED_ONE_DIRECTION() |
|
17
|
|
|
* @method static RoadManagementType JUNCTION_CONNECTING_CARRIAGEWAY_CLOSED() |
|
18
|
|
|
* @method static RoadManagementType JUNCTION_ENTRY_CLOSED() |
|
19
|
|
|
* @method static RoadManagementType JUNCTION_EXIT_CLOSED() |
|
20
|
|
|
* @method static RoadManagementType HARD_SHOULDER_USAGE() |
|
21
|
|
|
*/ |
|
22
|
|
|
final class RoadManagementType extends Enum |
|
23
|
|
|
{ |
|
24
|
|
|
private const UNKNOWN = 'UNKNOWN'; |
|
25
|
|
|
private const SPEED_RESTRICTION = 'SPEED_RESTRICTION'; |
|
26
|
|
|
private const DISPLACEMENT = 'DISPLACEMENT'; |
|
27
|
|
|
private const NARROW_LANES = 'NARROW_LANES'; |
|
28
|
|
|
private const CLOSURES = 'CLOSURES'; |
|
29
|
|
|
private const CLOSED_LANES = 'CLOSED_LANES'; |
|
30
|
|
|
private const ROAD_CLOSED_ONE_DIRECTION = 'ROAD_CLOSED_ONE_DIRECTION'; |
|
31
|
|
|
private const JUNCTION_CONNECTING_CARRIAGEWAY_CLOSED = 'JUNCTION_CONNECTING_CARRIAGEWAY_CLOSED'; |
|
32
|
|
|
private const JUNCTION_ENTRY_CLOSED = 'JUNCTION_ENTRY_CLOSED'; |
|
33
|
|
|
private const JUNCTION_EXIT_CLOSED = 'JUNCTION_EXIT_CLOSED'; |
|
34
|
|
|
private const HARD_SHOULDER_USAGE = 'HARD_SHOULDER_USAGE'; |
|
35
|
|
|
|
|
36
|
|
|
public function getLabel(): string |
|
37
|
|
|
{ |
|
38
|
|
|
return [ |
|
39
|
|
|
'UNKNOWN' => '', |
|
40
|
|
|
'SPEED_RESTRICTION' => 'Snelheidsbeperking', |
|
41
|
|
|
'DISPLACEMENT' => 'Verplaatsing van de rijbaan', |
|
42
|
|
|
'NARROW_LANES' => 'Versmalde rijstroken', |
|
43
|
|
|
'CLOSURES' => 'Afsluiting', |
|
44
|
|
|
'CLOSED_LANES' => 'Verminderd aantal rijstroken beschikbaar', |
|
45
|
|
|
'ROAD_CLOSED_ONE_DIRECTION' => 'Wegafsluiting', |
|
46
|
|
|
'JUNCTION_CONNECTING_CARRIAGEWAY_CLOSED' => 'Afsluiting verbindingsweg', |
|
47
|
|
|
'JUNCTION_ENTRY_CLOSED' => 'Afsluiting toerit', |
|
48
|
|
|
'JUNCTION_EXIT_CLOSED' => 'Afsluiting afrit', |
|
49
|
|
|
'HARD_SHOULDER_USAGE' => 'Verkeer via vluchtstrook', |
|
50
|
|
|
][$this->getKey()]; |
|
51
|
|
|
} |
|
52
|
|
|
} |
|
53
|
|
|
|