original_string: protected function validateInput(InputInterface $input)
      {
          $options = ['tags', 'tag', 'parameters', 'parameter'];
  
          $optionsCount = 0;
          foreach ($options as $option) {
              if ($input->getOption($option)) {
                  ++$optionsCount;
              }
          }
  
          $name = $input->getArgument('name');
          if ((null !== $name) && ($optionsCount > 0)) {
              throw new InvalidArgumentException('The options tags, tag, parameters & parameter can not be combined with the service name argument.');
          } elseif ((null === $name) && $optionsCount > 1) {
              throw new InvalidArgumentException('The options tags, tag, parameters & parameter can not be combined together.');
          }
      }
code: protected function validateInput(InputInterface $input)
      {
          $options = ['tags', 'tag', 'parameters', 'parameter'];
  
          $optionsCount = 0;
          foreach ($options as $option) {
              if ($input->getOption($option)) {
                  ++$optionsCount;
              }
          }
  
          $name = $input->getArgument('name');
          if ((null !== $name) && ($optionsCount > 0)) {
              throw new InvalidArgumentException('The options tags, tag, parameters & parameter can not be combined with the service name argument.');
          } elseif ((null === $name) && $optionsCount > 1) {
              throw new InvalidArgumentException('The options tags, tag, parameters & parameter can not be combined together.');
          }
      }
code_tokens: protected function validateInput ( InputInterface $ input ) { $ options = [ 'tags' , 'tag' , 'parameters' , 'parameter' ] ; $ optionsCount = 0 ; foreach ( $ options as $ option ) { if ( $ input -> getOption ( $ option ) ) { ++ $ optionsCount ; } } $ name = $ input -> getArgument ( 'name' ) ; if ( ( null !== $ name ) && ( $ optionsCount > 0 ) ) { throw new InvalidArgumentException ( 'The options tags, tag, parameters & parameter can not be combined with the service name argument.' ) ; } elseif ( ( null === $ name ) && $ optionsCount > 1 ) { throw new InvalidArgumentException ( 'The options tags, tag, parameters & parameter can not be combined together.' ) ; } }
docstring: Validates input arguments and options.
  
  @throws \InvalidArgumentException
docstring_tokens: Validates input arguments and options .