Enum стал абстрактным внутри Enums, наследникам созданы getFfdTags()

This commit is contained in:
2021-11-28 00:55:28 +08:00
parent c9670a1321
commit e2141551d5
11 changed files with 95 additions and 63 deletions

View File

@@ -11,12 +11,10 @@ declare(strict_types = 1);
namespace AtolOnline\Enums;
use AtolOnline\Enum;
/**
* Константы, определяющие типы налогообложения
*
* Тег ФДД - 1055
* @see https://online.atol.ru/files/API_atol_online_v4.pdf Документация, стр 35
*/
final class SnoTypes extends Enum
{
@@ -51,10 +49,10 @@ final class SnoTypes extends Enum
const PATENT = 'patent';
/**
* @return int[] Возвращает массив тегов ФФД
* @inheritDoc
*/
public static function getFfdTags(): array
{
return [1055];
}
}
}