2019-08-17 21:58:04 +02:00

23 lines
323 B
PHP

<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\Specification;
class Item
{
/**
* @var float
*/
private $price;
public function __construct(float $price)
{
$this->price = $price;
}
public function getPrice(): float
{
return $this->price;
}
}