1 | <?php |
||
17 | final class CashGame implements Game |
||
18 | { |
||
19 | /** |
||
20 | * @var UuidInterface |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $name; |
||
28 | |||
29 | /** |
||
30 | * @var DefaultParameters |
||
31 | */ |
||
32 | private $rules; |
||
33 | |||
34 | /** |
||
35 | * @var PlayerCollection |
||
36 | */ |
||
37 | private $players; |
||
38 | |||
39 | /** |
||
40 | * @var TableCollection |
||
41 | */ |
||
42 | protected $tables; |
||
43 | |||
44 | /** |
||
45 | * CashGame constructor. |
||
46 | * |
||
47 | * @param UuidInterface $id |
||
48 | * @param string $name |
||
49 | 66 | * @param GameParameters $rules |
|
50 | */ |
||
51 | 66 | public function __construct(UuidInterface $id, string $name, GameParameters $rules) |
|
59 | |||
60 | /** |
||
61 | * @param UuidInterface $id |
||
62 | * @param string $name |
||
63 | * @param GameParameters $rules |
||
64 | * |
||
65 | 66 | * @return CashGame |
|
66 | */ |
||
67 | 66 | public static function setUp(UuidInterface $id, string $name, GameParameters $rules) |
|
71 | |||
72 | /** |
||
73 | 1 | * @return UuidInterface |
|
74 | */ |
||
75 | 1 | public function id(): UuidInterface |
|
79 | |||
80 | /** |
||
81 | 1 | * @return string |
|
82 | */ |
||
83 | 1 | public function name(): string |
|
87 | |||
88 | /** |
||
89 | 4 | * @return GameParameters |
|
90 | */ |
||
91 | 4 | public function rules(): GameParameters |
|
95 | |||
96 | /** |
||
97 | 63 | * @return PlayerCollection |
|
98 | */ |
||
99 | 63 | public function players(): PlayerCollection |
|
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | public function __toString(): string |
||
111 | |||
112 | 62 | /** |
|
113 | * @return TableCollection |
||
114 | 59 | */ |
|
115 | 62 | public function tables(): TableCollection |
|
119 | |||
120 | /** |
||
121 | 62 | * @param Client $client |
|
122 | 1 | * @param Chips $buyinAmount |
|
123 | * |
||
124 | * @throws GameException |
||
125 | 61 | */ |
|
126 | public function registerPlayer(Client $client, Chips $buyinAmount = null) |
||
148 | 57 | ||
149 | public function removePlayer(Client $client) |
||
178 | |||
179 | public function assignPlayersToTables() |
||
193 | } |
||
194 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..