1 | <?php |
||
15 | class GameWinEvent extends PlayerEvent implements Cancellable |
||
16 | { |
||
17 | /** @var int */ |
||
18 | public const WIN_RED = 0; |
||
19 | |||
20 | /** @var int */ |
||
21 | public const WIN_BLUE = 1; |
||
22 | |||
23 | /** @var int $type */ |
||
24 | private $type; |
||
25 | |||
26 | /** |
||
27 | * GameWinEvent constructor. |
||
28 | * |
||
29 | * @param int $type |
||
30 | * @param Player $player |
||
31 | */ |
||
32 | public function __construct(int $type, Player $player) |
||
37 | |||
38 | /** |
||
39 | * @return int |
||
40 | */ |
||
41 | public function getType(): int |
||
45 | } |
||
46 |