| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 46.15% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class Charges |
||
| 10 | { |
||
| 11 | private ?Money $totalChargesAndTaxAmount = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var ChargesRecord[] |
||
| 15 | */ |
||
| 16 | private array $records = []; |
||
| 17 | |||
| 18 | public function getTotalChargesAndTaxAmount(): ?Money |
||
| 19 | { |
||
| 20 | return $this->totalChargesAndTaxAmount; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function setTotalChargesAndTaxAmount(Money $money): void |
||
| 24 | { |
||
| 25 | $this->totalChargesAndTaxAmount = $money; |
||
| 26 | 4 | } |
|
| 27 | |||
| 28 | 4 | public function addRecord(ChargesRecord $record): void |
|
| 29 | 4 | { |
|
| 30 | $this->records[] = $record; |
||
| 31 | 4 | } |
|
| 32 | |||
| 33 | 4 | /** |
|
| 34 | 4 | * @return ChargesRecord[] |
|
| 35 | */ |
||
| 36 | public function getRecords(): array |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getRecord(): ?ChargesRecord |
||
| 48 | } |
||
| 49 | } |
||
| 50 |