mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
add conjured items management and refactoring
This commit is contained in:
parent
ebf85e0e4e
commit
309f82b85b
13
php/src/Enum/Name.php
Normal file
13
php/src/Enum/Name.php
Normal 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';
|
||||||
|
}
|
||||||
12
php/src/Enum/Operation.php
Normal file
12
php/src/Enum/Operation.php
Normal 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';
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user