By default, the enum value is its method name. You can however override it, for example if you want to store enums as integers in a database, instead of using their method name.
class StatusEnum extends Enum
protected static function values(): array
'draft' => 1,
'published' => 2,
'archived' => 3,
An enum value doesn't have to be a string, as you can see in the example.