Files
workbloomerp-backend/app/Shared/Constants/SpedCRTConst.php
T
Claudecio Martins a951944997 first commit
2026-06-16 10:04:10 -03:00

23 lines
643 B
PHP

<?php
namespace WorkbloomERP\Constants;
class SpedCRTConst {
public const CRT = [
"1" => "Simples Nacional",
"2" => "Simples Nacional - Excesso de Sublimite de Receita Bruta",
"3" => "Regime Normal",
"4" => "MEI - Microempreendedor Individual"
];
public static function getAll(): array {
return self::CRT;
}
public static function getDescription(string|int|null $code): string {
return self::CRT[$code] ?? 'Código de regime tributário desconhecido.';
}
public static function exists(string|int|null $code): bool {
return isset(self::CRT[$code]);
}
}