InboxFileStatusEnum.php
1 <?php 2 3 namespace App\Enums; 4 5 use Spatie\Enum\Enum; 6 7 /** 8 * This Enum represents the validity of the document associated to the inboxfile. 9 * For example, ETR with noPass wont PASS the evaluation when its Validation (INF) has PASSED 10 * 11 * @method static self pass() 12 * @method static self noPass() 13 * @method static self pending() 14 * 15 */ 16 class InboxFileStatusEnum extends Enum 17 { 18 public static function values(): array 19 { 20 return [ 21 'pass' => 1, 22 'noPass' => 2, 23 'pending' => 3, 24 ]; 25 } 26 27 protected static function labels(): array 28 { 29 return [ 30 'pass' => __('inbox-files.status.pass'), 31 'noPass' => __('inbox-files.status.no_pass'), 32 'pending' => __('inbox-files.status.pending'), 33 ]; 34 } 35 }