src/Database/QueryBuilder.php
/**
	 * Executes a method on the command instance.
	 *
	 * @param string $method The name of the method.
	 * @param array $arguments Arguments provided to the call.
	 * @return $this|mixed
	 */
Executes a method on the command instance.
@param string $method The name of the method.
@param array $arguments Arguments provided to the call.
@return $this|mixed
Executes a method on the command instance . @param string $method The name of the method . @param array $arguments Arguments provided to the call . @return $this|mixed
protected function runCommandMethod($method, $arguments) {
		if (!method_exists($this->command, $method)) {
			throw new QueryBuilderException(sprintf('Command has no such method \'%s\'', $method));
		}
		$returned = call_user_func_array(array($this->command, $method), $arguments);
		if ($returned == $this->command) {
			return $this;
		}
		return $returned;
	}
protected function runCommandMethod ( $ method , $ arguments ) { if ( ! method_exists ( $ this -> command , $ method ) ) { throw new QueryBuilderException ( sprintf ( 'Command has no such method \'%s\'' , $ method ) ) ; } $ returned = call_user_func_array ( array ( $ this -> command , $ method ) , $ arguments ) ; if ( $ returned == $ this -> command ) { return $ this ; } return $ returned ; }
Executes a method on the command instance.
Executes a method on the command instance .