publicfunctionaddQuery(string $connectionName, Query $query): void { $this->data[$connectionName][] = [ 'sql' => $query->getSql(), 'params' => $query->getParams(), 'types' => $query->getTypes(), 'executionMS' => $query->getDuration(...), // stop() may not be called at this point
]; }