src/Database/QueryBuilder/Commands/Select.php
/**
	 * Encloses the statements created inside in parenthesis.
	 *
	 * @param callable $callback
	 * @param string $separator
	 * @return $this
	 */
Encloses the statements created inside in parenthesis.
@param callable $callback
@param string $separator
@return $this
Encloses the statements created inside in parenthesis . @param callable $callback @param string $separator @return $this
public function enclose(callable $callback, $separator = 'AND') {
		$startPosition = count($this->wheres);
		$callback($this->builder);
		$endPosition = count($this->wheres) - 1;
		$this->enclosures[] = array(
			'start' => $startPosition,
			'end' => $endPosition,
			'separator' => $separator
		);
		return $this;
	}
public function enclose ( callable $ callback , $ separator = 'AND' ) { $ startPosition = count ( $ this -> wheres ) ; $ callback ( $ this -> builder ) ; $ endPosition = count ( $ this -> wheres ) - 1 ; $ this -> enclosures [ ] = array ( 'start' => $ startPosition , 'end' => $ endPosition , 'separator' => $ separator ) ; return $ this ; }
Encloses the statements created inside in parenthesis.
Encloses the statements created inside in parenthesis .