src/Database/QueryBuilder.php
/**
	 * Initializes the command instance for the query builder.
	 *
	 * @param string $method The name of the command.
	 * @param array $arguments Arguments provided to the call (can be empty).
	 * @return $this
	 */
Initializes the command instance for the query builder.
@param string $method The name of the command.
@param array $arguments Arguments provided to the call (can be empty).
@return $this
Initializes the command instance for the query builder . @param string $method The name of the command . @param array $arguments Arguments provided to the call ( can be empty ) . @return $this
protected function startCommand($method, $arguments) {
		if (count($arguments) !== 0) {
			throw new QueryBuilderException(sprintf('%s() expected exactly 0 arguments, got %d', $method, count($arguments)));
		}
		if (!$this->hasCommand($method)) {
			throw new QueryBuilderException(sprintf('%s is not a supported query command', $method));
		}
		$this->command = $this->getCommand($method);
		return $this;
	}
protected function startCommand ( $ method , $ arguments ) { if ( count ( $ arguments ) !== 0 ) { throw new QueryBuilderException ( sprintf ( '%s() expected exactly 0 arguments, got %d' , $ method , count ( $ arguments ) ) ) ; } if ( ! $ this -> hasCommand ( $ method ) ) { throw new QueryBuilderException ( sprintf ( '%s is not a supported query command' , $ method ) ) ; } $ this -> command = $ this -> getCommand ( $ method ) ; return $ this ; }
Initializes the command instance for the query builder.
Initializes the command instance for the query builder .
// Commands have no parameters // Make sure the command exists // Create the new command instance // Return this instance