OpenSkill\Datatable\Versions\VersionEngine::setVersionFromRequest PHP Method

setVersionFromRequest() private method

Pick the verison of an engine that can parse a request.
private setVersionFromRequest ( array $versions )
$versions array an array of possible version this data table supports
    private function setVersionFromRequest(array $versions)
    {
        $this->setDefaultVersion($versions);
        foreach ($versions as $v) {
            if ($v->canParseRequest()) {
                $this->version = $v;
                break;
            }
        }
    }