Skip to content

Commit

Permalink
feat: add BUS to VehicleType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Jun 25, 2024
1 parent ddee65c commit 7f03ac5
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 @@ -10,6 +10,7 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
### Added
- Add changedById to Contact.
- Add RAIL to TransportMode enum.
- Add BUS to VehicleType enum.

### Changed
- Drop PHP <8.1 support.
Expand Down
3 changes: 3 additions & 0 deletions src/Enums/VehicleType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @method static VehicleType BIKE()
* @method static VehicleType SCOOTER()
* @method static VehicleType AGRICULTURAL_VEHICLE()
* @method static VehicleType BUS()
*/
final class VehicleType extends Enum
{
Expand All @@ -22,6 +23,7 @@ final class VehicleType extends Enum
private const BIKE = 'BIKE';
private const SCOOTER = 'SCOOTER';
private const AGRICULTURAL_VEHICLE = 'AGRICULTURAL_VEHICLE';
private const BUS = 'BUS';

public function getLabel(): string
{
Expand All @@ -32,6 +34,7 @@ public function getLabel(): string
'BIKE' => '(snor)Fiets',
'SCOOTER' => 'Brommer',
'AGRICULTURAL_VEHICLE' => 'Agrarisch voertuig',
'BUS' => 'Bus',
][$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 @@ -1054,7 +1054,8 @@
"PEDESTRIAN",
"BIKE",
"SCOOTER",
"AGRICULTURAL_VEHICLE"
"AGRICULTURAL_VEHICLE",
"BUS"
],
"title": "VehicleType"
},
Expand Down

0 comments on commit 7f03ac5

Please sign in to comment.