26use InvalidArgumentException;
27use BadMethodCallException;
41 parent::__construct( $conf );
43 if ( !isset( $conf[
'connection'] ) ) {
44 throw new InvalidArgumentException(
"Missing 'connection' argument." );
59 return new static( [
'connection' => $db ] +
$params );
79 throw new BadMethodCallException(
"Method is not supported." );
83 throw new BadMethodCallException(
"Method is not supported." );
105 if ( isset( $this->lb ) ) {
106 call_user_func_array( $callback, array_merge( [ $this->lb ],
$params ) );