Agregar, editar y eliminar promociones
This commit is contained in:
16
app/src/Model/Venta/Promotion/Type.php
Normal file
16
app/src/Model/Venta/Promotion/Type.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Incoviba\Model\Venta\Promotion;
|
||||
|
||||
enum Type: int
|
||||
{
|
||||
case FIXED = 1;
|
||||
case VARIABLE = 2;
|
||||
|
||||
public function name(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::FIXED => 'fijo',
|
||||
self::VARIABLE => 'variable'
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user