add conjured items management and refactoring

This commit is contained in:
Jérémy SAFONT 2024-03-12 22:42:28 +01:00
parent ebf85e0e4e
commit 309f82b85b
2 changed files with 25 additions and 0 deletions

13
php/src/Enum/Name.php Normal file
View File

@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace GildedRose\Enum;
enum Name: string
{
case AGED_BRIE = 'Aged Brie';
case BACKSTAGE_PASSES = 'Backstage passes to a TAFKAL80ETC concert';
case SULFURAS = 'Sulfuras, Hand of Ragnaros';
case CONJURED = 'Conjured Mana Cake';
}

View File

@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace GildedRose\Enum;
enum Operation: string
{
case INCREASE = 'increase';
case DECREASE = 'decrease';
case RESET = 'reset';
}