original_string: public function getComposer($required = true, $disablePlugins = false)
      {
          if (null === $this->composer) {
              if ($this->composerFactory) {
                  $this->composer = call_user_func($this->composerFactory, $required, $disablePlugins);
              }
  
              if ($required && !$this->composer) {
                  throw new \RuntimeException(
                      'You must define a factory closure for wrapped commands to retrieve the ' .
                      'composer instance.'
                  );
              }
          }
  
          return $this->composer;
      }
code: public function getComposer($required = true, $disablePlugins = false)
      {
          if (null === $this->composer) {
              if ($this->composerFactory) {
                  $this->composer = call_user_func($this->composerFactory, $required, $disablePlugins);
              }
  
              if ($required && !$this->composer) {
                  throw new \RuntimeException(
                      'You must define a factory closure for wrapped commands to retrieve the ' .
                      'composer instance.'
                  );
              }
          }
  
          return $this->composer;
      }
code_tokens: public function getComposer ( $ required = true , $ disablePlugins = false ) { if ( null === $ this -> composer ) { if ( $ this -> composerFactory ) { $ this -> composer = call_user_func ( $ this -> composerFactory , $ required , $ disablePlugins ) ; } if ( $ required && ! $ this -> composer ) { throw new \ RuntimeException ( 'You must define a factory closure for wrapped commands to retrieve the ' . 'composer instance.' ) ; } } return $ this -> composer ; }
docstring: Retrieve the composer instance.
  
  @param bool $required       Flag if the instance is required.
  
  @param bool $disablePlugins Flag if plugins shall get disabled.
  
  @return Composer|null
  
  @throws \RuntimeException When no factory closure has been set.
docstring_tokens: Retrieve the composer instance .