TOEProductSystemEnum.php
1 <?php 2 3 namespace App\Enums; 4 5 use Spatie\Enum\Enum; 6 7 /** 8 * @method static self product() 9 * @method static self system() 10 * @method static self development_center() 11 * @method static self production_center() 12 */ 13 class TOEProductSystemEnum extends Enum 14 { 15 protected static function values(): array 16 { 17 return [ 18 'product' => 1, 19 'system' => 2, 20 'development_center' => 3, 21 'production_center' => 4 22 ]; 23 } 24 25 protected static function labels(): array 26 { 27 return [ 28 'product' => __('toes.toe.panel.form.product_system.product'), 29 'system' => __('toes.toe.panel.form.product_system.system'), 30 'development_center' => __('toes.toe.panel.form.product_system.development_center'), 31 'production_center' => __('toes.toe.panel.form.product_system.production_center'), 32 ]; 33 } 34 }