query-builder/src/First/QueryProxy.php
// All public query methods return $this except union methods which return a union query object.
All public query methods return $this except union methods which return a union query object.
All public query methods return $this except union methods which return a union query object .
public function union( StatementInterface $right ) {
		if ( ! method_exists( $this->query, 'union' ) ) {
			throw new BadMethodCallException( '@todo' );
		}
		return new QueryProxy( $this->query->union( $right ) );
	}
public function union ( StatementInterface $ right ) { if ( ! method_exists ( $ this -> query , 'union' ) ) { throw new BadMethodCallException ( '@todo' ) ; } return new QueryProxy ( $ this -> query -> union ( $ right ) ) ; }
All public query methods return $this except union methods which return a union query object.
All public query methods return $this except union methods which return a union query object .
// @todo Should we modify and return this instance instead?
 // $this->query = $this->query->union( $right ); // return $this;