src/Queries/OldCoreQuery.php
public function fetchUsing($methodAndParams)
    {
        // simple case
        if (is_string($methodAndParams) || empty($methodAndParams['method'])) {
            $this->fetchUsing = in_array($methodAndParams, ['GetNext', 'getNext'])
                ? ['method' => 'GetNext', 'params' => [true, true]]
                : ['method' => 'Fetch'];

            return $this;
        }

        // complex case
        if (in_array($methodAndParams['method'], ['GetNext', 'getNext'])) {
            $bTextHtmlAuto = isset($methodAndParams['params'][0]) ? $methodAndParams['params'][0] : true;
            $useTilda = isset($methodAndParams['params'][1]) ? $methodAndParams['params'][1] : true;
            $this->fetchUsing = ['method' => 'GetNext', 'params' => [$bTextHtmlAuto, $useTilda]];
        } else {
            $this->fetchUsing = ['method' => 'Fetch'];
        }

        return $this;
    }
public function fetchUsing($methodAndParams)
    {
        // simple case
        if (is_string($methodAndParams) || empty($methodAndParams['method'])) {
            $this->fetchUsing = in_array($methodAndParams, ['GetNext', 'getNext'])
                ? ['method' => 'GetNext', 'params' => [true, true]]
                : ['method' => 'Fetch'];

            return $this;
        }

        // complex case
        if (in_array($methodAndParams['method'], ['GetNext', 'getNext'])) {
            $bTextHtmlAuto = isset($methodAndParams['params'][0]) ? $methodAndParams['params'][0] : true;
            $useTilda = isset($methodAndParams['params'][1]) ? $methodAndParams['params'][1] : true;
            $this->fetchUsing = ['method' => 'GetNext', 'params' => [$bTextHtmlAuto, $useTilda]];
        } else {
            $this->fetchUsing = ['method' => 'Fetch'];
        }

        return $this;
    }
public function fetchUsing ( $ methodAndParams ) { // simple case if ( is_string ( $ methodAndParams ) || empty ( $ methodAndParams [ 'method' ] ) ) { $ this -> fetchUsing = in_array ( $ methodAndParams , [ 'GetNext' , 'getNext' ] ) ? [ 'method' => 'GetNext' , 'params' => [ true , true ] ] : [ 'method' => 'Fetch' ] ; return $ this ; } // complex case if ( in_array ( $ methodAndParams [ 'method' ] , [ 'GetNext' , 'getNext' ] ) ) { $ bTextHtmlAuto = isset ( $ methodAndParams [ 'params' ] [ 0 ] ) ? $ methodAndParams [ 'params' ] [ 0 ] : true ; $ useTilda = isset ( $ methodAndParams [ 'params' ] [ 1 ] ) ? $ methodAndParams [ 'params' ] [ 1 ] : true ; $ this -> fetchUsing = [ 'method' => 'GetNext' , 'params' => [ $ bTextHtmlAuto , $ useTilda ] ] ; } else { $ this -> fetchUsing = [ 'method' => 'Fetch' ] ; } return $ this ; }
Set fetch using from string or array.

@param string|array $methodAndParams
@return $this
Set fetch using from string or array .