Skip to content

Commit

Permalink
feat: add RAIL to AreaType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Jul 23, 2024
1 parent f31d033 commit cc8655b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ All notable changes to `swisnl\melvin` will be documented in this file.
Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles.

## Unreleased
- Nothing.

### Added
- Add RAILWAY to AreaType enum.

## [1.5.0] - 2024-06-26

Expand Down
3 changes: 3 additions & 0 deletions src/Enums/AreaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @method static AreaType ROAD_AUTHORITY()
* @method static AreaType TUNNEL_AUTHORITY()
* @method static AreaType PROVINCE()
* @method static AreaType RAILWAY()
* @method static AreaType MISCELLANEOUS()
*/
final class AreaType extends Enum
Expand All @@ -23,6 +24,7 @@ final class AreaType extends Enum
private const ROAD_AUTHORITY = 'ROAD_AUTHORITY';
private const TUNNEL_AUTHORITY = 'TUNNEL_AUTHORITY';
private const PROVINCE = 'PROVINCE';
private const RAILWAY = 'RAILWAY';
private const MISCELLANEOUS = 'MISCELLANEOUS';

public function getLabel(): string
Expand All @@ -34,6 +36,7 @@ public function getLabel(): string
'ROAD_AUTHORITY' => 'Wegendistrict',
'TUNNEL_AUTHORITY' => 'Tunnelbeheerder',
'PROVINCE' => 'Provincie',
'RAILWAY' => 'Spoorbeheerder',
'MISCELLANEOUS' => 'Diversen',
][$this->getKey()];
}
Expand Down

0 comments on commit cc8655b

Please sign in to comment.