You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Utilities.php 285B

12345678910111213141516
  1. <?php
  2. namespace App\Enums\Concerns;
  3. trait Utilities
  4. {
  5. public static function caseValues(): array
  6. {
  7. return array_column(static::cases(), 'value');
  8. }
  9. public static function caseNames(): array
  10. {
  11. return array_column(static::cases(), 'name');
  12. }
  13. }