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