Total Complexity | 8 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class MissingFiller |
||
22 | { |
||
23 | private Calculator $calculator; |
||
24 | private Operations $operations; |
||
25 | private int $missing; |
||
26 | |||
27 | public function __construct(Calculator $calculator) |
||
32 | } |
||
33 | |||
34 | public function fill() : void |
||
44 | } |
||
45 | |||
46 | private function applyToColumns(float $perColumn) : void |
||
47 | { |
||
48 | $cols = $this->calculator->getColumns(); |
||
49 | |||
50 | foreach($cols as $col) |
||
51 | { |
||
52 | if($col->isMissing()) |
||
53 | { |
||
54 | $col->setValue($perColumn); |
||
55 | } |
||
56 | } |
||
57 | } |
||
58 | |||
59 | private function calcPerColumn() : float |
||
69 | } |
||
70 | } |
||
71 |