protected function setReleaseVersion()
    {
        try {
            $currentVersion = Context::get('version-persister')->getCurrentVersion();
        } catch (\Exception $e) {
            $currentVersion = Context::get('version-generator')->getInitialVersion();
        }

        $this->releaseVersion = Context::get('version-generator')->generateNextVersion($currentVersion);
    }
protected function setReleaseVersion()
    {
        try {
            $currentVersion = Context::get('version-persister')->getCurrentVersion();
        } catch (\Exception $e) {
            $currentVersion = Context::get('version-generator')->getInitialVersion();
        }

        $this->releaseVersion = Context::get('version-generator')->generateNextVersion($currentVersion);
    }
protected function setReleaseVersion ( ) { try { $ currentVersion = Context :: get ( 'version-persister' ) -> getCurrentVersion ( ) ; } catch ( \ Exception $ e ) { $ currentVersion = Context :: get ( 'version-generator' ) -> getInitialVersion ( ) ; } $ this -> releaseVersion = Context :: get ( 'version-generator' ) -> generateNextVersion ( $ currentVersion ) ; }
Determine and set the next release version.
Determine and set the next release version .