Skip to content

Commit

Permalink
feat: add RAIL to TransportMode enum
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed May 31, 2024
1 parent 64bf429 commit ddee65c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi

### Added
- Add changedById to Contact.
- Add RAIL to TransportMode enum.

### Changed
- Drop PHP <8.1 support.
Expand Down
3 changes: 3 additions & 0 deletions src/Enums/TransportMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
* @method static TransportMode BIKE()
* @method static TransportMode WALK()
* @method static TransportMode BOAT()
* @method static TransportMode RAIL()
*/
final class TransportMode extends Enum
{
private const CAR = 'CAR';
private const BIKE = 'BIKE';
private const WALK = 'WALK';
private const BOAT = 'BOAT';
private const RAIL = 'RAIL';

public function getLabel(): string
{
Expand All @@ -26,6 +28,7 @@ public function getLabel(): string
'BIKE' => '(snor)Fiets',
'WALK' => 'Voetganger',
'BOAT' => 'Vaartuig',
'RAIL' => 'Trein',
][$this->getKey()];
}
}
3 changes: 2 additions & 1 deletion tests/_files/situations-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,8 @@
"CAR",
"BIKE",
"WALK",
"BOAT"
"BOAT",
"RAIL"
],
"title": "TransportMode"
},
Expand Down

0 comments on commit ddee65c

Please sign in to comment.