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