FrequencyVerificationEnum.php
1 <?php 2 3 namespace App\Enums; 4 5 use Spatie\Enum\Enum; 6 7 /** 8 * @method static self daily() 9 * @method static self weekly() 10 * @method static self monthly() 11 */ 12 13 class FrequencyVerificationEnum extends Enum 14 { 15 protected static function values(): array 16 { 17 return [ 18 'daily' => 1, 19 'weekly' => 2, 20 'monthly' => 3, 21 ]; 22 } 23 24 protected static function labels(): array 25 { 26 return [ 27 'daily' => __('settings.schedule.daily'), 28 'weekly' => __('settings.schedule.weekly'), 29 'monthly' => __('settings.schedule.monthly'), 30 ]; 31 } 32 }