| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 15 | ||
| Bugs | 0 | Features | 3 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | class BillingRegistry implements BillingRegistryInterface |
||
| 8 | { |
||
| 9 | use HasLock; |
||
| 10 | |||
| 11 | /** @var TariffTypeDefinitionInterface[] */ |
||
| 12 | private array $tariffTypeDefinitions = []; |
||
| 13 | |||
| 14 | public function addTariffType(TariffTypeDefinitionInterface $tariffTypeDefinition): void |
||
| 15 | { |
||
| 16 | $this->ensureNotLocked(); |
||
| 17 | |||
| 18 | $this->tariffTypeDefinitions[] = $tariffTypeDefinition; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getTariffTypeDefinitions(): array |
||
| 24 | } |
||
| 25 | |||
| 26 | public function priceTypes(): \Generator |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | protected function afterLock(): void |
||
| 38 | } |
||
| 39 | } |
||
| 40 |