code: public function setOptions($mode = null, $logicalOperator = null, array $linkedFilters = [])
      {
          $this->mode = is_null($mode) ? Filter::MODE_INCLUDE : $mode;
          $this->logicalOperator = is_null($logicalOperator) ? Filter::MERGE_OR : $logicalOperator;
          $this->linkedFilters = $linkedFilters;
          return $this;
      }
docs: Set filter options.
  
  @param string $mode
  @param string $logicalOperator
  @param array $linkedFilters
  @return $this