public function applyFilter(string $defaultSort = "", string $defaultOrder = "")
    {
        $this->filter = new Filter(RequestFactory::read(), $defaultSort, $defaultOrder);
    }
public function applyFilter(string $defaultSort = "", string $defaultOrder = "")
    {
        $this->filter = new Filter(RequestFactory::read(), $defaultSort, $defaultOrder);
    }
public function applyFilter ( string $ defaultSort = "" , string $ defaultOrder = "" ) { $ this -> filter = new Filter ( RequestFactory :: read ( ) , $ defaultSort , $ defaultOrder ) ; }
Creates the filter according to the request.

@param string $defaultSort
@param string $defaultOrder
Creates the filter according to the request .