| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class Balance |
||
| 19 | { |
||
| 20 | use DataAware; |
||
| 21 | |||
| 22 | 2 | public function getValue(): float |
|
| 23 | { |
||
| 24 | 2 | if ($this->get('work-with-balance')) { |
|
| 25 | 1 | return (float) $this->get('balance'); |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | throw new \Exception($this->get('error-message')); |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function getDate(): \DateTimeImmutable |
|
| 34 | } |
||
| 35 | } |
||
| 36 |