您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AdjustmentComputation.php 295B

12345678910111213141516
  1. <?php
  2. namespace App\Enums\Accounting;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum AdjustmentComputation: string implements HasLabel
  5. {
  6. case Percentage = 'percentage';
  7. case Fixed = 'fixed';
  8. public function getLabel(): ?string
  9. {
  10. return translate($this->name);
  11. }
  12. }