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 */
$class =
new $class($this);
return $class->
prepare($sql,
$options);
} /**
* Returns the last query's statement object.
*
* @return Query
*/