public function toQueryParts(): array
    {
        $fields = [];
        foreach ($this->fields as $field => $value) {
            $fields['by'.ucfirst($field)] = $value;
        }

        return $fields;
    }
public function toQueryParts(): array
    {
        $fields = [];
        foreach ($this->fields as $field => $value) {
            $fields['by'.ucfirst($field)] = $value;
        }

        return $fields;
    }
public function toQueryParts ( ) : array { $ fields = [ ] ; foreach ( $ this -> fields as $ field => $ value ) { $ fields [ 'by' . ucfirst ( $ field ) ] = $ value ; } return $ fields ; }
Return all of the fields being filtered.

@return array
Return all of the fields being filtered .