/ app / Enums / TOERequirementTypeEnum.php
TOERequirementTypeEnum.php
 1  <?php
 2  
 3  namespace App\Enums;
 4  
 5  use Spatie\Enum\Enum;
 6  
 7  /**
 8   * @method static self software()
 9   * @method static self hardware()
10   */
11  class TOERequirementTypeEnum extends Enum
12  {
13      protected static function values(): array
14      {
15          return [
16              'software' => 1,
17              'hardware' => 2,
18          ];
19      }
20  }