sql = $sql; $this->time = $time; $this->bindings = $bindings; $this->connection = $connection; $this->connectionName = $connection->getName(); } /** * Get the raw SQL representation of the query with embedded bindings. * * @return string */ public function toRawSql() { return $this->connection ->query() ->getGrammar() ->substituteBindingsIntoRawSql($this->sql, $this->connection->prepareBindings($this->bindings)); } }