public function getFilter()
    {
        if (!($this->filter instanceof FilterComposite) && !is_callable($this->filter)) {
            $this->filter = new FilterComposite([FilterHelper::create($this->filter)]);
        }

        return $this->filter;
    }