mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
22 lines
373 B
PHP
22 lines
373 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
class Item {
|
|
|
|
public $name;
|
|
public $sell_in;
|
|
public $quality;
|
|
|
|
function __construct($name, $sell_in, $quality) {
|
|
$this->name = $name;
|
|
$this->sell_in = $sell_in;
|
|
$this->quality = $quality;
|
|
}
|
|
|
|
public function __toString() {
|
|
return "{$this->name}, {$this->sell_in}, {$this->quality}";
|
|
}
|
|
}
|
|
|