1 | <?php |
||
10 | class DefaultParameters implements GameParameters |
||
11 | { |
||
12 | /** |
||
13 | * @var Uuid |
||
14 | */ |
||
15 | private $gameId; |
||
16 | |||
17 | /** |
||
18 | * @var Chips |
||
19 | */ |
||
20 | private $smallBlind; |
||
21 | |||
22 | /** |
||
23 | * @var Chips |
||
24 | */ |
||
25 | private $bigBlind; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | private $tableSize = 9; |
||
31 | |||
32 | public function __construct(Uuid $gameId, Chips $bigBlind, Chips $smallBlind = null, int $tableSize = 9) |
||
51 | |||
52 | /** |
||
53 | * @return Uuid |
||
54 | */ |
||
55 | public function gameId(): Uuid |
||
59 | |||
60 | /** |
||
61 | * @return Chips |
||
62 | */ |
||
63 | public function bigBlind(): Chips |
||
67 | |||
68 | /** |
||
69 | * @return Chips |
||
70 | */ |
||
71 | public function smallBlind(): Chips |
||
80 | |||
81 | /** |
||
82 | * @return int |
||
83 | */ |
||
84 | public function tableSize(): int |
||
88 | } |
||
89 |
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..