PHPMD\TextUI\Command::getVersion PHP Method

getVersion() private method

Returns the current version number.
private getVersion ( ) : string
return string
    private function getVersion()
    {
        $build = __DIR__ . '/../../../../../build.properties';
        $version = '@package_version@';
        if (file_exists($build)) {
            $data = @parse_ini_file($build);
            $version = $data['project.version'];
        }
        return $version;
    }