public function strategy(string $strategy, array $options = []): ListFilter
    {
        $this->main['strategy'] = $strategy;

        if (count($options)) {
            $this->main['options'] = $options;
        }

        return $this;
    }
public function strategy(string $strategy, array $options = []): ListFilter
    {
        $this->main['strategy'] = $strategy;

        if (count($options)) {
            $this->main['options'] = $options;
        }

        return $this;
    }
public function strategy ( string $ strategy , array $ options = [ ] ) : ListFilter { $ this -> main [ 'strategy' ] = $ strategy ; if ( count ( $ options ) ) { $ this -> main [ 'options' ] = $ options ; } return $ this ; }
Set the filter strategy

@param string $strategy  alias or FQN
@param array  $options   options specific for the strategy
@return ListFilter|$this
Set the filter strategy