original_string: protected function resolveQueryFor(Builder $builder, string $filter) : Builder
      {
          $factory = $this->allowed[$filter];
  
          $input = $this->wantsByPrices($filter)
              ? $this->prices()
              : $this->request[$filter];
  
      	return (new $factory($input, $builder))->query();
      }
code: protected function resolveQueryFor(Builder $builder, string $filter) : Builder
      {
          $factory = $this->allowed[$filter];
  
          $input = $this->wantsByPrices($filter)
              ? $this->prices()
              : $this->request[$filter];
  
      	return (new $factory($input, $builder))->query();
      }
code_tokens: protected function resolveQueryFor ( Builder $ builder , string $ filter ) : Builder { $ factory = $ this -> allowed [ $ filter ] ; $ input = $ this -> wantsByPrices ( $ filter ) ? $ this -> prices ( ) : $ this -> request [ $ filter ] ; return ( new $ factory ( $ input , $ builder ) ) -> query ( ) ; }
docstring: Returns a query filtered by the given filter.
  
  @param Builder $builder
  @param string $key
  
  @return Builder
docstring_tokens: Returns a query filtered by the given filter .