Files
DesignPatternsPHP/Behavioral/Specification/Item.php
Antonio Spinelli e59d70a0ac start a restructure
2014-03-21 18:03:45 -03:00

32 lines
421 B
PHP

<?php
namespace DesignPatterns\Specification;
/**
* An trivial item
*/
class Item
{
protected $price;
/**
* An item must have a price
*
* @param int $price
*/
public function __construct($price)
{
$this->price = $price;
}
/**
* Get the items price
*
* @return int
*/
public function getPrice()
{
return $this->price;
}
}