| 1 | <?php |
||
| 5 | class Scorer |
||
| 6 | {
|
||
| 7 | /** |
||
| 8 | * @var Scorer[] |
||
| 9 | */ |
||
| 10 | static $scorer = array(); |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Player |
||
| 14 | */ |
||
| 15 | private $player; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $goals; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return Player |
||
| 24 | */ |
||
| 25 | 2 | public function getPlayer() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param Player $player |
||
| 32 | */ |
||
| 33 | 2 | public function setPlayer(Player $player) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | 2 | public function getGoals() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param int $goals |
||
| 48 | */ |
||
| 49 | public function setGoals($goals) |
||
| 53 | |||
| 54 | 2 | public function incrementGoals() |
|
| 58 | } |
||
| 59 |