protected function incrementVersion($version, $patch_limit = 20, $minor_limit = 50)
    {
        if (!$this->isVersionNumeric($version)) {
            throw new DeploymentRuntimeException(
                'Unable to increment semantic version.'
            );
        }
        list($major, $minor, $patch) = explode('.', $version);

        if ($patch < $patch_limit) {
            ++$patch;
        } else if ($minor < $minor_limit) {
            ++$minor;
            $patch = 0;
        } else {
            ++$major;
            $patch = 0;
            $minor = 0;
        }

        return "{$major}.{$minor}.{$patch}";
    }
protected function incrementVersion($version, $patch_limit = 20, $minor_limit = 50)
    {
        if (!$this->isVersionNumeric($version)) {
            throw new DeploymentRuntimeException(
                'Unable to increment semantic version.'
            );
        }
        list($major, $minor, $patch) = explode('.', $version);

        if ($patch < $patch_limit) {
            ++$patch;
        } else if ($minor < $minor_limit) {
            ++$minor;
            $patch = 0;
        } else {
            ++$major;
            $patch = 0;
            $minor = 0;
        }

        return "{$major}.{$minor}.{$patch}";
    }
protected function incrementVersion ( $ version , $ patch_limit = 20 , $ minor_limit = 50 ) { if ( ! $ this -> isVersionNumeric ( $ version ) ) { throw new DeploymentRuntimeException ( 'Unable to increment semantic version.' ) ; } list ( $ major , $ minor , $ patch ) = explode ( '.' , $ version ) ; if ( $ patch < $ patch_limit ) { ++ $ patch ; } else if ( $ minor < $ minor_limit ) { ++ $ minor ; $ patch = 0 ; } else { ++ $ major ; $ patch = 0 ; $ minor = 0 ; } return "{$major}.{$minor}.{$patch}" ; }
Increment the semantic version number.

@param $version
@param int $patch_limit
@param int $minor_limit

@return string
Increment the semantic version number .