src/Model/VictorySettings.php
public function getVictoryString()
    {
        if (!isset(RecAnalystConst::$VICTORY_CONDITIONS[$this->_victoryCondition])) {
            return '';
        }
        $result = RecAnalystConst::$VICTORY_CONDITIONS[$this->_victoryCondition];
        switch ($this->_victoryCondition) {
            case self::TIMELIMIT:
                if ($this->_timeLimit) {
                    return sprintf('%s (%d years)', $result, $this->_timeLimit);
                }
                break;
            case self::SCORELIMIT:
                if ($this->_scoreLimit) {
                    return sprintf('%s (%d)', $result, $this->_scoreLimit);
                }
                break;
        }
        return $result;
    }
public function getVictoryString()
    {
        if (!isset(RecAnalystConst::$VICTORY_CONDITIONS[$this->_victoryCondition])) {
            return '';
        }
        $result = RecAnalystConst::$VICTORY_CONDITIONS[$this->_victoryCondition];
        switch ($this->_victoryCondition) {
            case self::TIMELIMIT:
                if ($this->_timeLimit) {
                    return sprintf('%s (%d years)', $result, $this->_timeLimit);
                }
                break;
            case self::SCORELIMIT:
                if ($this->_scoreLimit) {
                    return sprintf('%s (%d)', $result, $this->_scoreLimit);
                }
                break;
        }
        return $result;
    }
public function getVictoryString ( ) { if ( ! isset ( RecAnalystConst :: $ VICTORY_CONDITIONS [ $ this -> _victoryCondition ] ) ) { return '' ; } $ result = RecAnalystConst :: $ VICTORY_CONDITIONS [ $ this -> _victoryCondition ] ; switch ( $ this -> _victoryCondition ) { case self :: TIMELIMIT : if ( $ this -> _timeLimit ) { return sprintf ( '%s (%d years)' , $ result , $ this -> _timeLimit ) ; } break ; case self :: SCORELIMIT : if ( $ this -> _scoreLimit ) { return sprintf ( '%s (%d)' , $ result , $ this -> _scoreLimit ) ; } break ; } return $ result ; }
Returns victory string.

@return string
Returns victory string .