| Total Complexity | 8 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class MissingFiller |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var Calculator |
||
| 25 | */ |
||
| 26 | private $calculator; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Operations |
||
| 30 | */ |
||
| 31 | private $operations; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var integer |
||
| 35 | */ |
||
| 36 | private $missing = 0; |
||
| 37 | |||
| 38 | public function __construct(Calculator $calculator) |
||
| 43 | } |
||
| 44 | |||
| 45 | public function fill() : void |
||
| 55 | } |
||
| 56 | |||
| 57 | private function applyToColumns(float $perColumn) : void |
||
| 58 | { |
||
| 59 | $cols = $this->calculator->getColumns(); |
||
| 60 | |||
| 61 | foreach($cols as $col) |
||
| 62 | { |
||
| 63 | if($col->isMissing()) |
||
| 64 | { |
||
| 65 | $col->setValue($perColumn); |
||
| 66 | } |
||
| 67 | } |
||
| 68 | } |
||
| 69 | |||
| 70 | private function calcPerColumn() : float |
||
| 80 | } |
||
| 81 | } |
||
| 82 |