code: public function setFilterSettings($intFilter)
      {
          $this->intFilter = $intFilter;
  
          $this->objFilterSettings = $this->getFilterFactory()->createCollection($this->intFilter);
  
          if (!$this->objFilterSettings) {
              throw new \RuntimeException('Error: no filter object defined.');
          }
  
          return $this;
      }
docs: Set the filter setting to use.
  
  @param int $intFilter The filter setting to use.
  
  @return $this
  
  @throws \RuntimeException When the filter settings can not be found.