yii\sphinx\Connection::createCommand PHP Метод

createCommand() публичный Метод

Creates a command for execution.
public createCommand ( string $sql = null, array $params = [] ) : Command
$sql string the SQL statement to be executed
$params array the parameters to be bound to the SQL statement
Результат Command the Sphinx command
    public function createCommand($sql = null, $params = [])
    {
        $command = new Command(['db' => $this, 'sql' => $sql]);
        return $command->bindValues($params);
    }