Convenience method that invoke the GetVersionCommand.

@param string|null $conn The alias of the connection to use

@return mixed
163146
public function getNeo4jVersion($conn = null)
    {
        $command = $this->invoke('neo.get_neo4j_version', $conn);
        $httpResponse = $command->execute();

        $response = $this->handleHttpResponse($httpResponse);

        return $response->getBody()['neo4j_version'];
    }
1278880
public function version($version = null)
    {
        if (func_num_args() === 0) {
            return $this->_version;
        }
        $this->_version = $version;
        return $this;
    }
704547
public function getOneVersion($versionNumber, $con = null)
    {
        return ChildDealerShedulesVersionQuery::create()
            ->filterByDealerShedules($this)
            ->filterByVersion($versionNumber)
            ->findOne($con);
    }
1223063
public function getAllVersions($con = null)
    {
        $criteria = new Criteria();
        $criteria->addAscendingOrderByColumn(DealerContentVersionTableMap::VERSION);

        return $this->getDealerContentVersions($criteria, $con);
    }
583865
public function addVersion($con = null)
    {
        $this->enforceVersion = false;

        $version = new ChildDealerVersion();
        $version->setId($this->getId());
        $version->setVisible($this->getVisible());
        $version->setAddress1($this->getAddress1());
        $version->setAddress2($this->getAddress2());
        $version->setAddress3($this->getAddress3());
        $version->setZipcode($this->getZipcode());
        $version->setCity($this->getCity());
        $version->setCountryId($this->getCountryId());
        $version->setLatitude($this->getLatitude());
        $version->setLongitude($this->getLongitude());
        $version->setCreatedAt($this->getCreatedAt());
        $version->setUpdatedAt($this->getUpdatedAt());
        $version->setVersion($this->getVersion());
        $version->setVersionCreatedAt($this->getVersionCreatedAt());
        $version->setVersionCreatedBy($this->getVersionCreatedBy());
        $version->setDealer($this);
        if ($relateds = $this->getDealerSheduless($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerShedulesIds(array_keys($relateds));
            $version->setDealerShedulesVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerContacts($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerContactIds(array_keys($relateds));
            $version->setDealerContactVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerContents($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerContentIds(array_keys($relateds));
            $version->setDealerContentVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerFolders($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerFolderIds(array_keys($relateds));
            $version->setDealerFolderVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerBrands($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerBrandIds(array_keys($relateds));
            $version->setDealerBrandVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerProducts($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerProductIds(array_keys($relateds));
            $version->setDealerProductVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerAdmins($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerAdminIds(array_keys($relateds));
            $version->setDealerAdminVersions(array_values($relateds));
        }
        $version->save($con);

        return $version;
    }
1207089
public function getOneVersion($versionNumber, $con = null)
    {
        return ChildDealerContentVersionQuery::create()
            ->filterByDealerContent($this)
            ->filterByVersion($versionNumber)
            ->findOne($con);
    }
734384
private function parseConn($conn)
    {
        while(true)
        {
            $meta = fread($conn, 4);
            if('' === $meta || false === $meta)
            {
                return;
            }
            $length = unpack('N', $meta)[1];
            $data = fread($conn, $length);
            if(false === $data || !isset($data[$length - 1]))
            {
                return;
            }
            $body = ($this->unserialize)($data);
            if(!$body instanceof Operation)
            {
                return;
            }
            try{
                $result = new Result($this->operationParser->parse($body));
            } catch(\Throwable $th) {
                $result = new Result(null, $th);
            }
            $resultData = ($this->serialize)($result);
            $length = strlen($resultData);
            $resultData = pack('N', $length) . $resultData;
            fwrite($conn, $resultData, $length + 4);
        }
    }
1224120
public function isVersioningNecessary($con = null)
    {
        if ($this->alreadyInSave) {
            return false;
        }

        if ($this->enforceVersion) {
            return true;
        }

        if (ChildIndexEngineIndexQuery::isVersioningEnabled() && ($this->isNew() || $this->isModified()) || $this->isDeleted()) {
            return true;
        }

        return false;
    }
327855
public function checkHAMaster($conn = null)
    {
        $response = $this->invoke('neo.core_get_ha_master', $conn)
          ->execute();

        return $this->handleHttpResponse($response);
    }
680091
public function getVersionString() {
        if ($this->versionString === null) {
            if (!$this->isConnected())
                $this->connect();
            $this->versionString = mysql_get_server_info($this->hConnection);
        }
        return $this->versionString;
    }
463106
public function getLastVersionNumber($con = null)
    {
        $v = ChildDealerAdminVersionQuery::create()
            ->filterByDealerAdmin($this)
            ->orderByVersion('desc')
            ->findOne($con);
        if (!$v) {
            return 0;
        }

        return $v->getVersion();
    }
1013620
public function version()
    {
        $this->sendCommand('version');
        $res = fgets($this->conn, 4096);
        $this->checkForError($res);

        return trim($res);
    }
190438
public function getAllVersions($con = null)
    {
        $criteria = new Criteria();
        $criteria->addAscendingOrderByColumn(DealerFolderVersionTableMap::VERSION);

        return $this->getDealerFolderVersions($criteria, $con);
    }
1154658
public function getLastVersionNumber($con = null)
    {
        $v = ChildDealerContactVersionQuery::create()
            ->filterByDealerContact($this)
            ->orderByVersion('desc')
            ->findOne($con);
        if (!$v) {
            return 0;
        }

        return $v->getVersion();
    }
152427
public function getDriverName($conn = null)
    {
        $conn = $conn ?: $this->getConnectionName();

        return $this->config->get('queue.' . $conn . '.driver', 'sync');
    }
239901
public function phpversion($extension = null)
    {
        $code = new Code();
        $code->addStatement(sprintf(
            "return phpversion(%s);",
            var_export($extension, true)
        ));

        return $this->adapter->run($code);
    }
1201403
public function callCheckVersion( $args ) {
		if ( ! empty( $args['key'] ) ) {
			$call = new Api\Call( Configs::get( 'api' ) . '/api/plugin/checkVersion', $args );

			// If there's an error set that as the response.
			if ( ! $response = $call->getError() ) {

				// If the response is successful, then retrieve the response.
				$response = $call->getResponse();
			}
		} else {
			$response = 'No Connect Key available.';
		}

		// Return the API response.
		return $response;
	}