code: public function setDbQueryConditionsForDefaultOptionsLoader($conditonsAndOptions) {
          if (
              !is_array($conditonsAndOptions)
              && !($conditonsAndOptions instanceof DbExpr)
              && !($conditonsAndOptions instanceof \Closure)
          ) {
              throw new \InvalidArgumentException(
                  '$conditonsAndOptions argument must be a string, DbExpr or a Closure'
              );
          }
          $this->dbQueryConditionsForDefaultOptionsLoader = $conditonsAndOptions;
          return $this;
      }
docs: Set conditions for default options loader
  @param array|\Closure $conditonsAndOptions
  @return $this
  @throws \InvalidArgumentException