private function setEndVariationValue(Move $move) { if ($this->endingVariation) { $this->endingVariation = false; $move->endVariation(); } }