| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class Calculator |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected $maxPoints = 0; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Calculator |
||
| 18 | */ |
||
| 19 | protected static $instance; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get a singleton instance of this class |
||
| 23 | * |
||
| 24 | * @return Calculator |
||
| 25 | */ |
||
| 26 | public static function getInstance() |
||
| 32 | } |
||
| 33 | |||
| 34 | public function calculate($totalPoints) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Calculate the maximum number of check points a module could possibly receive by loading a check suite, |
||
| 41 | * mocking a successful result and getting the points from every check |
||
| 42 | * |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getMaxPoints() |
||
| 57 |