public function getVersion()
    {
        if (!isset($this->version)) {
            try {
                $this->version = @file_get_contents(__DIR__.'/../VERSION');
                if ($this->version === false) {
                    throw new \Exception('Can\'t get version file!');
                }
            } catch (\Exception $e) {
                $this->version = self::VERSION;
            }
        }

        return $this->version;
    }
public function getVersion()
    {
        if (!isset($this->version)) {
            try {
                $this->version = @file_get_contents(__DIR__.'/../VERSION');
                if ($this->version === false) {
                    throw new \Exception('Can\'t get version file!');
                }
            } catch (\Exception $e) {
                $this->version = self::VERSION;
            }
        }

        return $this->version;
    }
public function getVersion ( ) { if ( ! isset ( $ this -> version ) ) { try { $ this -> version = @ file_get_contents ( __DIR__ . '/../VERSION' ) ; if ( $ this -> version === false ) { throw new \ Exception ( 'Can\'t get version file!' ) ; } } catch ( \ Exception $ e ) { $ this -> version = self :: VERSION ; } } return $ this -> version ; }
Return version.

@return string
Return version .