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