Skip to content

Commit

Permalink
feat: add RAILWAY to RoadAuthorityType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Jun 25, 2024
1 parent 7f03ac5 commit d83b9dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
- Add changedById to Contact.
- Add RAIL to TransportMode enum.
- Add BUS to VehicleType enum.
- Add RAILWAY to RoadAuthorityType enum.

### Changed
- Drop PHP <8.1 support.
Expand Down
3 changes: 3 additions & 0 deletions src/Enums/RoadAuthorityType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @method static RoadAuthorityType WATER_AUTHORITY()
* @method static RoadAuthorityType POLDER_AUTHORITY()
* @method static RoadAuthorityType PROVINCE()
* @method static RoadAuthorityType RAILWAY()
* @method static RoadAuthorityType MISCELLANEOUS()
* @method static RoadAuthorityType UNKNOWN()
*/
Expand All @@ -26,6 +27,7 @@ final class RoadAuthorityType extends Enum
private const WATER_AUTHORITY = 'WATER_AUTHORITY';
private const POLDER_AUTHORITY = 'POLDER_AUTHORITY';
private const PROVINCE = 'PROVINCE';
private const RAILWAY = 'RAILWAY';
private const MISCELLANEOUS = 'MISCELLANEOUS';
private const UNKNOWN = 'UNKNOWN';

Expand All @@ -39,6 +41,7 @@ public function getLabel(): string
'WATER_AUTHORITY' => 'Waterschap',
'POLDER_AUTHORITY' => 'Hoogheemraadschap',
'PROVINCE' => 'Provincie',
'RAILWAY' => 'Spoorbeheerder',
'MISCELLANEOUS' => 'Diversen',
'UNKNOWN' => 'Onbekend',
][$this->getKey()];
Expand Down
1 change: 1 addition & 0 deletions tests/_files/situations-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@
"WATER_AUTHORITY",
"POLDER_AUTHORITY",
"PROVINCE",
"RAILWAY",
"MISCELLANEOUS",
"UNKNOWN",
"EMPTY"
Expand Down

0 comments on commit d83b9dd

Please sign in to comment.