src/package/Version.php
public function getBuild()
    {
        if (
            $this->git->isVersionComingFromGit() &&
            ($value = $this->git->version('build'))
        ) {
            return $value;
        }

        if ($this->config->get('build.mode') === Constants::BUILD_MODE_NUMBER) {
            return $this->config->get('build.number');
        }

        return $this->git->getCommit();
    }
public function getBuild()
    {
        if (
            $this->git->isVersionComingFromGit() &&
            ($value = $this->git->version('build'))
        ) {
            return $value;
        }

        if ($this->config->get('build.mode') === Constants::BUILD_MODE_NUMBER) {
            return $this->config->get('build.number');
        }

        return $this->git->getCommit();
    }
public function getBuild ( ) { if ( $ this -> git -> isVersionComingFromGit ( ) && ( $ value = $ this -> git -> version ( 'build' ) ) ) { return $ value ; } if ( $ this -> config -> get ( 'build.mode' ) === Constants :: BUILD_MODE_NUMBER ) { return $ this -> config -> get ( 'build.number' ) ; } return $ this -> git -> getCommit ( ) ; }
Get the current build.

@return mixed
Get the current build .