src/QueryBuilder.php
public function join(string $table, string $condition, string $type=''): QueryBuilderInterface
	{
		// Prefix and quote table name
		$table = explode(' ', mb_trim($table));
		$table[0] = $this->driver->quoteTable($table[0]);
		$table = $this->driver->quoteIdent($table);
		$table = implode(' ', $table);

		// Parse out the join condition
		$parsedCondition = $this->parser->compileJoin($condition);
		$condition = $table . ' ON ' . $parsedCondition;

		$this->state->appendMap("\n" . strtoupper($type) . ' JOIN ', $condition, 'join');

		return $this;
	}
public function join(string $table, string $condition, string $type=''): QueryBuilderInterface
	{
		// Prefix and quote table name
		$table = explode(' ', mb_trim($table));
		$table[0] = $this->driver->quoteTable($table[0]);
		$table = $this->driver->quoteIdent($table);
		$table = implode(' ', $table);

		// Parse out the join condition
		$parsedCondition = $this->parser->compileJoin($condition);
		$condition = $table . ' ON ' . $parsedCondition;

		$this->state->appendMap("\n" . strtoupper($type) . ' JOIN ', $condition, 'join');

		return $this;
	}
public function join ( string $ table , string $ condition , string $ type = '' ) : QueryBuilderInterface { // Prefix and quote table name $ table = explode ( ' ' , mb_trim ( $ table ) ) ; $ table [ 0 ] = $ this -> driver -> quoteTable ( $ table [ 0 ] ) ; $ table = $ this -> driver -> quoteIdent ( $ table ) ; $ table = implode ( ' ' , $ table ) ; // Parse out the join condition $ parsedCondition = $ this -> parser -> compileJoin ( $ condition ) ; $ condition = $ table . ' ON ' . $ parsedCondition ; $ this -> state -> appendMap ( "\n" . strtoupper ( $ type ) . ' JOIN ' , $ condition , 'join' ) ; return $ this ; }
Creates a join phrase in a compiled query

@param string $table
@param string $condition
@param string $type
@return QueryBuilderInterface
Creates a join phrase in a compiled query