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

TaxComputation.php 298B

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