public function setup(PlayerCollection $players): self
    {
        $collection = $players->map(function (Player $player, $seatNumber) {
            // everyone is still left to act
            return [
                'seat' => $seatNumber,
                'player' => $player->name(),
                'action' => self::STILL_TO_ACT,
            ];
        });

        return self::make($collection->toArray());
    }
public function setup(PlayerCollection $players): self
    {
        $collection = $players->map(function (Player $player, $seatNumber) {
            // everyone is still left to act
            return [
                'seat' => $seatNumber,
                'player' => $player->name(),
                'action' => self::STILL_TO_ACT,
            ];
        });

        return self::make($collection->toArray());
    }
public function setup ( PlayerCollection $ players ) : self { $ collection = $ players -> map ( function ( Player $ player , $ seatNumber ) { // everyone is still left to act return [ 'seat' => $ seatNumber , 'player' => $ player -> name ( ) , 'action' => self :: STILL_TO_ACT , ] ; } ) ; return self :: make ( $ collection -> toArray ( ) ) ; }
Sets all players actions to STILL_TO_ACT.

@param PlayerCollection $players

@return LeftToAct
Sets all players actions to STILL_TO_ACT .