Skip to content

Commit

Permalink
fix(selfreferee): add info
Browse files Browse the repository at this point in the history
  • Loading branch information
thepercival committed May 30, 2023
1 parent 28bb0e6 commit bfe8c4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion domain/Sport/Variant/WithPoule/AllInOneGame.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SportsHelpers\Sport\Variant\WithPoule;

use SportsHelpers\SelfReferee;
use SportsHelpers\SelfRefereeInfo;
use SportsHelpers\Sport\Variant\AllInOneGame as AllInOneGameVariant;
use SportsHelpers\Sport\WithPoule as SportVariantWithPoule;

Expand Down Expand Up @@ -66,7 +67,7 @@ public function getNrOfGameGroups(): int
return (int)ceil($this->getTotalNrOfGamePlaces() / $this->getNrOfGamePlacesSimultaneously());
}

public function getMaxNrOfGamesSimultaneously(SelfReferee $selfReferee): int {
public function getMaxNrOfGamesSimultaneously(SelfRefereeInfo $selfRefereeInfo): int {
return 1;
}

Expand Down
4 changes: 4 additions & 0 deletions domain/Sport/WithPoule.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace SportsHelpers\Sport;

use SportsHelpers\SelfRefereeInfo;

/**
* @template T
*/
Expand All @@ -26,4 +28,6 @@ public function getNrOfPlaces(): int
abstract public function getSportVariant(): mixed;

abstract public function getTotalNrOfGames(): int;

abstract public function getMaxNrOfGamesSimultaneously(SelfRefereeInfo $selfRefereeInfo): int;
}

0 comments on commit bfe8c4b

Please sign in to comment.