Dominik Liebler 4678b5d86f PHP8
2021-04-12 14:04:45 +02:00

16 lines
245 B
PHP

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