src/mako/database/query/Query.php
public function join($table, $column1 = null, $operator = null, $column2 = null, string $type = 'INNER', bool $raw = false)
	{
		$join = new Join($type, $table);

		if($column1 instanceof Closure)
		{
			$column1($join);
		}
		else
		{
			if($raw)
			{
				$join->onRaw($column1, $operator, $column2);
			}
			else
			{
				$join->on($column1, $operator, $column2);
			}
		}

		$this->joins[] = $join;

		return $this;
	}
public function join($table, $column1 = null, $operator = null, $column2 = null, string $type = 'INNER', bool $raw = false)
	{
		$join = new Join($type, $table);

		if($column1 instanceof Closure)
		{
			$column1($join);
		}
		else
		{
			if($raw)
			{
				$join->onRaw($column1, $operator, $column2);
			}
			else
			{
				$join->on($column1, $operator, $column2);
			}
		}

		$this->joins[] = $join;

		return $this;
	}
public function join ( $ table , $ column1 = null , $ operator = null , $ column2 = null , string $ type = 'INNER' , bool $ raw = false ) { $ join = new Join ( $ type , $ table ) ; if ( $ column1 instanceof Closure ) { $ column1 ( $ join ) ; } else { if ( $ raw ) { $ join -> onRaw ( $ column1 , $ operator , $ column2 ) ; } else { $ join -> on ( $ column1 , $ operator , $ column2 ) ; } } $ this -> joins [ ] = $ join ; return $ this ; }
Adds a JOIN clause.

@param  string          $table    Table name
@param  string|\Closure $column1  Column name or closure
@param  string          $operator Operator
@param  string          $column2  Column name
@param  string          $type     Join type
@param  bool            $raw      Raw join?
@return $this
Adds a JOIN clause .