protected function log($time)
	{
		// Build the actual query
		$query = $this->toString();

		Event::trigger('database_query', [
			'query' => $query,
			'time'  => $time
		]);

		// Add it to the internal logs
		$this->log[] = $query;
		$this->count++;
		$this->timer += $time;
	}
protected function log($time)
	{
		// Build the actual query
		$query = $this->toString();

		Event::trigger('database_query', [
			'query' => $query,
			'time'  => $time
		]);

		// Add it to the internal logs
		$this->log[] = $query;
		$this->count++;
		$this->timer += $time;
	}
protected function log ( $ time ) { // Build the actual query $ query = $ this -> toString ( ) ; Event :: trigger ( 'database_query' , [ 'query' => $ query , 'time' => $ time ] ) ; // Add it to the internal logs $ this -> log [ ] = $ query ; $ this -> count ++ ; $ this -> timer += $ time ; }
Logs the current sql statement

@param   int    $time  The time elapsed during query execution
@return  $this
@since   2.0.0
Logs the current sql statement