| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 16.66% |
| Changes | 0 | ||
| 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 | 4 | public function __construct( |
|
| 23 | } |
||
| 24 | |||
| 25 | public function get(int $commodityId): CommodityInterface |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getAll(int $type = null): array |
||
| 47 |