src/Neevo/Result.php
public function join($source, $condition){
		if($this->validateConditions())
			return $this;

		if(!(is_string($source) || $source instanceof self || $source instanceof Literal))
			throw new InvalidArgumentException('Argument 1 must be a string, Neevo\\Literal or Neevo\\Result.');
		if(!(is_string($condition) || $condition instanceof Literal))
			throw new InvalidArgumentException('Argument 2 must be a string or Neevo\\Literal.');

		if($source instanceof self)
			$this->subqueries[] = $source;

		$this->resetState();
		$type = (func_num_args() > 2) ? func_get_arg(2) : '';

		$this->joins[] = array($source, $condition, $type);

		return $this;
	}
public function join($source, $condition){
		if($this->validateConditions())
			return $this;

		if(!(is_string($source) || $source instanceof self || $source instanceof Literal))
			throw new InvalidArgumentException('Argument 1 must be a string, Neevo\\Literal or Neevo\\Result.');
		if(!(is_string($condition) || $condition instanceof Literal))
			throw new InvalidArgumentException('Argument 2 must be a string or Neevo\\Literal.');

		if($source instanceof self)
			$this->subqueries[] = $source;

		$this->resetState();
		$type = (func_num_args() > 2) ? func_get_arg(2) : '';

		$this->joins[] = array($source, $condition, $type);

		return $this;
	}
public function join ( $ source , $ condition ) { if ( $ this -> validateConditions ( ) ) return $ this ; if ( ! ( is_string ( $ source ) || $ source instanceof self || $ source instanceof Literal ) ) throw new InvalidArgumentException ( 'Argument 1 must be a string, Neevo\\Literal or Neevo\\Result.' ) ; if ( ! ( is_string ( $ condition ) || $ condition instanceof Literal ) ) throw new InvalidArgumentException ( 'Argument 2 must be a string or Neevo\\Literal.' ) ; if ( $ source instanceof self ) $ this -> subqueries [ ] = $ source ; $ this -> resetState ( ) ; $ type = ( func_num_args ( ) > 2 ) ? func_get_arg ( 2 ) : '' ; $ this -> joins [ ] = array ( $ source , $ condition , $ type ) ; return $ this ; }
Performs JOIN on tables.
@param string|Result|Literal $source Table name or subquery
@param string|Literal $condition
@return Result fluent interface
Performs JOIN on tables .