public function transform($query) {
        $usePatch = isset($this->options['driverOptions']['use_patch']) ? $this->options['driverOptions']['use_patch'] : false;
        
        $tokens     = $this->parser->parse($query);
        $method     = HttpMethods::ofSqlOperation(SqlOperation::create($tokens), $usePatch);
        $annotation = Annotation::get($this->routings, Table::create($tokens), $method);

        return $this->requestFactory->createOne($method, $tokens, $this->options, $annotation);
    }
public function transform($query) {
        $usePatch = isset($this->options['driverOptions']['use_patch']) ? $this->options['driverOptions']['use_patch'] : false;
        
        $tokens     = $this->parser->parse($query);
        $method     = HttpMethods::ofSqlOperation(SqlOperation::create($tokens), $usePatch);
        $annotation = Annotation::get($this->routings, Table::create($tokens), $method);

        return $this->requestFactory->createOne($method, $tokens, $this->options, $annotation);
    }
public function transform ( $ query ) { $ usePatch = isset ( $ this -> options [ 'driverOptions' ] [ 'use_patch' ] ) ? $ this -> options [ 'driverOptions' ] [ 'use_patch' ] : false ; $ tokens = $ this -> parser -> parse ( $ query ) ; $ method = HttpMethods :: ofSqlOperation ( SqlOperation :: create ( $ tokens ) , $ usePatch ) ; $ annotation = Annotation :: get ( $ this -> routings , Table :: create ( $ tokens ) , $ method ) ; return $ this -> requestFactory -> createOne ( $ method , $ tokens , $ this -> options , $ annotation ) ; }
Transforms the given query into a request object

@param  string $query
@return Request

@SuppressWarnings("PHPMD.StaticAccess")
Transforms the given query into a request object