protected function getFilter() { $filter = parent::getFilter(); $filter->jobSubTypeIn = $this->getSupportedProtocols(); if ($this->taskConfig->params->minFileSize && is_numeric($this->taskConfig->params->minFileSize)) { $filter->fileSizeGreaterThan = $this->taskConfig->params->minFileSize; } if ($this->taskConfig->params->maxFileSize && is_numeric($this->taskConfig->params->maxFileSize)) { $filter->fileSizeLessThan = $this->taskConfig->params->maxFileSize; } return $filter; }