Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

DiscountComputation.php 335B

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