mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
Backstage passes quality downgrade after sell
date.
This commit is contained in:
parent
34de975747
commit
92bc550f78
@ -32,6 +32,9 @@ final class GildedRose {
|
||||
$item->quality = $item->quality + 3;
|
||||
}
|
||||
}
|
||||
if ($item->sell_in < 0) {
|
||||
$item->quality = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user