lib/Elastica/Client.php
public function getVersion()
    {
        if ($this->_version) {
            return $this->_version;
        }

        $data = $this->request('/')->getData();

        return $this->_version = $data['version']['number'];
    }
public function getVersion()
    {
        if ($this->_version) {
            return $this->_version;
        }

        $data = $this->request('/')->getData();

        return $this->_version = $data['version']['number'];
    }
public function getVersion ( ) { if ( $ this -> _version ) { return $ this -> _version ; } $ data = $ this -> request ( '/' ) -> getData ( ) ; return $ this -> _version = $ data [ 'version' ] [ 'number' ] ; }
Get current version.

@return string
Get current version .