yii\sphinx\Query::create PHP Method

create() public static method

The properties being copies are the ones to be used by query builders.
public static create ( Query $from ) : Query
$from Query the source query object
return Query the new Query object
    public static function create($from)
    {
        return new self(['where' => $from->where, 'limit' => $from->limit, 'offset' => $from->offset, 'orderBy' => $from->orderBy, 'indexBy' => $from->indexBy, 'select' => $from->select, 'selectOption' => $from->selectOption, 'distinct' => $from->distinct, 'from' => $from->from, 'groupBy' => $from->groupBy, 'join' => $from->join, 'having' => $from->having, 'union' => $from->union, 'params' => $from->params, 'groupLimit' => $from->groupLimit, 'options' => $from->options, 'within' => $from->within, 'match' => $from->match, 'snippetCallback' => $from->snippetCallback, 'snippetOptions' => $from->snippetOptions]);
    }