src/db/Builder.class.php
public function join($table, $firstColumn, $operator = null, $secondColumn = null, $type = 'inner', $where = false) {
		
		if ($firstColumn instanceof Closure) {
			
			$this->joins[] = new JoinClause($type, $table);
			
			call_user_func($firstColumn, end($this->joins));
		
		} else {
			
			$join = new JoinClause($type, $table);
	
			$this->joins[] = $join->on($firstColumn, $operator, $secondColumn, 'and', $where);
		
		}
		
		return $this;
	}
public function join($table, $firstColumn, $operator = null, $secondColumn = null, $type = 'inner', $where = false) {
		
		if ($firstColumn instanceof Closure) {
			
			$this->joins[] = new JoinClause($type, $table);
			
			call_user_func($firstColumn, end($this->joins));
		
		} else {
			
			$join = new JoinClause($type, $table);
	
			$this->joins[] = $join->on($firstColumn, $operator, $secondColumn, 'and', $where);
		
		}
		
		return $this;
	}
Add a join clause to the query.

@param  string  $table
@param  string  $firstColumn
@param  string  $operator
@param  string  $secondColumn
@param  string  $type
@param  bool    $where
@return \wiggum\db\Builder