Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

RecordsPerPage.php 668B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Enums;
  3. use App\Enums\Concerns\Utilities;
  4. use Filament\Support\Contracts\HasLabel;
  5. enum RecordsPerPage: int implements HasLabel
  6. {
  7. use Utilities;
  8. case Five = 5;
  9. case Ten = 10;
  10. case TwentyFive = 25;
  11. case Fifty = 50;
  12. case OneHundred = 100;
  13. public const DEFAULT = self::Ten->value;
  14. public const FIVE = self::Five->value;
  15. public const TEN = self::Ten->value;
  16. public const TWENTY_FIVE = self::TwentyFive->value;
  17. public const FIFTY = self::Fifty->value;
  18. public const ONE_HUNDRED = self::OneHundred->value;
  19. public function getLabel(): ?string
  20. {
  21. return (string) $this->value;
  22. }
  23. }