original_string: public function when($concrete)
      {
          $aliases = [];
  
          foreach (Arr::wrap($concrete) as $c) {
              $aliases[] = $this->getAlias($c);
          }
  
          return new ContextualBindingBuilder($this, $aliases);
      }
code: public function when($concrete)
      {
          $aliases = [];
  
          foreach (Arr::wrap($concrete) as $c) {
              $aliases[] = $this->getAlias($c);
          }
  
          return new ContextualBindingBuilder($this, $aliases);
      }
code_tokens: public function when ( $ concrete ) { $ aliases = [ ] ; foreach ( Arr :: wrap ( $ concrete ) as $ c ) { $ aliases [ ] = $ this -> getAlias ( $ c ) ; } return new ContextualBindingBuilder ( $ this , $ aliases ) ; }
docstring: Define a contextual binding.
  
  @param  array|string  $concrete
  @return \Illuminate\Contracts\Container\ContextualBindingBuilder
docstring_tokens: Define a contextual binding .