Esempio n. 1
0
 /**
  * Check if player has set game instance
  *
  * @throws PlayerException
  */
 public function checkIsGameSetForPlayer()
 {
     if (false === $this->game instanceof AbstractGame) {
         throw PlayerException::gameIsNotSetForPlayer($this);
     }
 }