PDepend\TextUI\Command::printVersion PHP Method

printVersion() protected method

Outputs the current PDepend version.
protected printVersion ( ) : void
return void
    protected function printVersion()
    {
        $build = __DIR__ . '/../../../../../build.properties';
        if (file_exists($build)) {
            $data = @parse_ini_file($build);
            $version = $data['project.version'];
        } else {
            $version = '@package_version@';
        }
        echo 'PDepend ', $version, PHP_EOL, PHP_EOL;
    }