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