/** * {@inheritdoc} */ public function addState(GameState $gameState) { $this->states->add($gameState); }
/** * {@inheritdoc} * * @return $this */ public function addState(PersistableGameStateInterface $state) { $state->setGame($this); $this->states->add($state); return $this; }