21 lines
391 B
PHP
21 lines
391 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Invoice\Enums;
|
||
|
|
||
|
use Illuminate\Support\Collection;
|
||
|
|
||
|
enum InvoiceStatus: string
|
||
|
{
|
||
|
case NEW = 'Neu';
|
||
|
case SENT = 'Rechnung gestellt';
|
||
|
case PAID = 'Rechnung beglichen';
|
||
|
|
||
|
/**
|
||
|
* @return Collection<int, string>
|
||
|
*/
|
||
|
public static function values(): Collection
|
||
|
{
|
||
|
return collect(static::cases())->map(fn ($case) => $case->value);
|
||
|
}
|
||
|
}
|