original_string: public function make($strategy, $key = null, ModelFilterDataInterface $info = null)
      {
          // A filter must have a resolvable strategy for displaying
          if ( ! ($strategyClass = $this->resolveStrategyClass($strategy))) {
              throw new RuntimeException(
                  "Could not resolve filter strategy class for {$key}: '{$strategy}'"
              );
          }
  
          /** @var FilterStrategyInterface $instance */
          $instance = app($strategyClass);
  
          if (null !== $info) {
              $instance->setFilterInformation($info);
          }
  
          return $instance;
      }
code: public function make($strategy, $key = null, ModelFilterDataInterface $info = null)
      {
          // A filter must have a resolvable strategy for displaying
          if ( ! ($strategyClass = $this->resolveStrategyClass($strategy))) {
              throw new RuntimeException(
                  "Could not resolve filter strategy class for {$key}: '{$strategy}'"
              );
          }
  
          /** @var FilterStrategyInterface $instance */
          $instance = app($strategyClass);
  
          if (null !== $info) {
              $instance->setFilterInformation($info);
          }
  
          return $instance;
      }
code_tokens: public function make ( $ strategy , $ key = null , ModelFilterDataInterface $ info = null ) { // A filter must have a resolvable strategy for displaying if ( ! ( $ strategyClass = $ this -> resolveStrategyClass ( $ strategy ) ) ) { throw new RuntimeException ( "Could not resolve filter strategy class for {$key}: '{$strategy}'" ) ; } /** @var FilterStrategyInterface $instance */ $ instance = app ( $ strategyClass ) ; if ( null !== $ info ) { $ instance -> setFilterInformation ( $ info ) ; } return $ instance ; }
docstring: Makes a filter display instance.
  
  @param string                        $strategy
  @param string|null                   $key
  @param ModelFilterDataInterface|null $info
  @return FilterStrategyInterface
docstring_tokens: Makes a filter display instance .