public function prepare(Closure
$func, array
$options =
[]) { if (empty($this->connID
)) { $this->
initialize();
} $this->
pretend();
$sql =
$func($this);
$this->
pretend(false
);
if ($sql instanceof QueryInterface
) { $sql =
$sql->
getOriginalQuery();
} $class =
str_ireplace('Connection', 'PreparedQuery',
static::
class);
/** @var BasePreparedQuery $class */