Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | final class CommodityCache implements CommodityCacheInterface |
||
11 | { |
||
12 | private CommodityRepositoryInterface $commodityRepository; |
||
13 | |||
14 | /** |
||
15 | * @var array<int, CommodityInterface>|null |
||
16 | */ |
||
17 | private ?array $commodityArray = null; |
||
18 | |||
19 | 2 | public function __construct( |
|
20 | CommodityRepositoryInterface $commodityRepository |
||
21 | ) { |
||
22 | 2 | $this->commodityRepository = $commodityRepository; |
|
23 | } |
||
24 | |||
25 | public function get(int $commodityId): CommodityInterface |
||
32 | } |
||
33 | } |
||
34 |