Example #1
0
 /**
  * @return Game[]
  */
 public function getGames()
 {
     return array_merge($this->gamesAsPlayer1->toArray(), $this->gamesAsPlayer2->toArray());
 }
Example #2
0
 private function completeCurrentGame($pgn)
 {
     $this->currentGame->setPgn($pgn);
     $this->games[] = $this->currentGame;
     $this->multiLineAnnotationDepth = 0;
 }
Example #3
0
 /**
  * Add game
  *
  * @param Game $game
  * @return $this
  */
 public function addGame(Game $game)
 {
     $this->games->add($game);
     return $this;
 }