Base de Datos

This commit is contained in:
Juan Pablo Vial
2025-02-18 16:02:10 -03:00
parent 8b386b8b44
commit 9d135e2c26
25 changed files with 1091 additions and 1 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace Incoviba\Model\Venta\Promotion;
enum State: int
{
case ACTIVE = 1;
case INACTIVE = 0;
public static function name(int $state): string
{
return match ($state) {
self::ACTIVE => 'active',
self::INACTIVE => 'inactive',
default => throw new \InvalidArgumentException('Unexpected match value')
};
}
}