Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ForSelectTrait | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| forSelect | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Enum; |
| 6 | |
| 7 | trait ForSelectTrait |
| 8 | { |
| 9 | /** |
| 10 | * @return array<string, string> |
| 11 | */ |
| 12 | public static function forSelect(): array |
| 13 | { |
| 14 | return array_column(self::cases(), 'name', 'value'); |
| 15 | } |
| 16 | } |