Total Complexity | 7 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Store implements Storable |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $balanceSheets = []; |
||
16 | |||
17 | /** |
||
18 | * @inheritDoc |
||
19 | */ |
||
20 | 120 | public function getBalance($object) |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | 103 | public function incBalance($object, $amount) |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | 103 | public function setBalance($object, $amount): bool |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param string $balance |
||
57 | * @return string |
||
58 | */ |
||
59 | 120 | protected function toInt($balance): string |
|
65 |