for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kata\GildedRoseKata;
class GildedRose
{
/** @var Item[] */
private $items;
public function __construct(array $items)
$this->items = $items;
}
public function updateQuality()
foreach ($this->items as $item) {
$internal_item = ItemFactory::fromItem($item);
$internal_item->updateQualityByDayPassed();