original_string: 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());
      }
code: 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());
      }
code_tokens: 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 ( ) ) ; }
docstring: Sets all players actions to STILL_TO_ACT.
  
  @param PlayerCollection $players
  
  @return LeftToAct
docstring_tokens: Sets all players actions to STILL_TO_ACT .