| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class CardDealer |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Deal cards to players. |
||
| 11 | * |
||
| 12 | * @param DeckOfCards $deck The deck of cards to deal from. |
||
| 13 | * @param int $numberOfPlayers The number of players to deal to. |
||
| 14 | * @param int $cardsPerPlayer The number of cards to deal to each player. |
||
| 15 | * |
||
| 16 | * @return array<CardHand> The hands of the players. |
||
| 17 | */ |
||
| 18 | public function deal(DeckOfCards $deck, int $numberOfPlayers, int $cardsPerPlayer): array |
||
| 37 |