You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EntityType.php 1.0KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Enums;
  3. use Filament\Support\Contracts\HasLabel;
  4. enum EntityType: string implements HasLabel
  5. {
  6. case SoleProprietorship = 'sole_proprietorship';
  7. case GeneralPartnership = 'general_partnership';
  8. case LimitedPartnership = 'limited_partnership';
  9. case LimitedLiabilityPartnership = 'limited_liability_partnership';
  10. case LimitedLiabilityCompany = 'limited_liability_company';
  11. case Corporation = 'corporation';
  12. case Nonprofit = 'nonprofit';
  13. public function getLabel(): ?string
  14. {
  15. return match ($this) {
  16. self::SoleProprietorship => 'Sole Proprietorship',
  17. self::GeneralPartnership => 'General Partnership',
  18. self::LimitedPartnership => 'Limited Partnership (LP)',
  19. self::LimitedLiabilityPartnership => 'Limited Liability Partnership (LLP)',
  20. self::LimitedLiabilityCompany => 'Limited Liability Company (LLC)',
  21. self::Corporation => 'Corporation',
  22. self::Nonprofit => 'Nonprofit',
  23. };
  24. }
  25. }