public function getVersion()
    {
        if (!$this->isValid()) {
            throw new SugarException("{$this->path} is not a valid sugar installation.");
        }
        // @codeCoverageIgnoreStart
        if (!defined('sugarEntry')) {
            // @codingStandardsIgnoreStart
            define('sugarEntry', true);
            // @codingStandardsIgnoreEnd
        }
        // @codeCoverageIgnoreEnd
        require($this->path . '/sugar_version.php');

        $version = array(
            'version' => $sugar_version,
            'db_version' => $sugar_db_version,
            'flavor' => $sugar_flavor,
            'build' => $sugar_build,
            'build_timestamp' => $sugar_timestamp,
        );

        return $version;
    }