for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Swis\Melvin\Enums;
use MyCLabs\Enum\Enum;
/**
* @method static TransportMode CAR()
* @method static TransportMode BIKE()
* @method static TransportMode WALK()
* @method static TransportMode BOAT()
*/
final class TransportMode extends Enum
{
private const CAR = 'CAR';
private const BIKE = 'BIKE';
private const WALK = 'WALK';
private const BOAT = 'BOAT';
public function getLabel(): string
return [
'CAR' => 'Auto / Motor',
'BIKE' => '(snor)Fiets',
'WALK' => 'Voetganger',
'BOAT' => 'Vaartuig',
][$this->getKey()];
}