@@ -7,16 +7,16 @@ |
||
| 7 | 7 | |
| 8 | 8 | class Handicap |
| 9 | 9 | { |
| 10 | - private $differentialArray; |
|
| 11 | - private $player; |
|
| 12 | - private $roundsUsed; |
|
| 10 | + private $differentialArray; |
|
| 11 | + private $player; |
|
| 12 | + private $roundsUsed; |
|
| 13 | 13 | |
| 14 | 14 | public function __construct(Player $player, $roundsUsed = 20) |
| 15 | - { |
|
| 16 | - $this->differentialArray = array(0,1,1,1,1,1,1,2,2,3,3,4,4,5,5,6,6,7,8,9,10); |
|
| 15 | + { |
|
| 16 | + $this->differentialArray = array(0,1,1,1,1,1,1,2,2,3,3,4,4,5,5,6,6,7,8,9,10); |
|
| 17 | 17 | $this->player = $player; |
| 18 | - $this->roundsUsed = $roundsUsed; //20 is USGA standard; Some leagues may want to adjust. |
|
| 19 | - } |
|
| 18 | + $this->roundsUsed = $roundsUsed; //20 is USGA standard; Some leagues may want to adjust. |
|
| 19 | + } |
|
| 20 | 20 | |
| 21 | 21 | public function calculate() |
| 22 | 22 | { |