| 1 | <?php |
||
| 10 | class ProductManager |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ProductStorageInterface |
||
| 14 | */ |
||
| 15 | private $storage; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * ProductManager constructor. |
||
| 19 | * @param ProductStorageInterface $storage |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(ProductStorageInterface $storage) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param $id |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | 1 | public function getProduct($id): string |
|
| 34 | } |
||
| 35 |