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