original_string: public function getArgument($name)
      {
          if (!$this->hasArgument($name)) {
              throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
          }
  
          $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;
  
          return $arguments[$name];
      }
code: public function getArgument($name)
      {
          if (!$this->hasArgument($name)) {
              throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
          }
  
          $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;
  
          return $arguments[$name];
      }
code_tokens: public function getArgument ( $ name ) { if ( ! $ this -> hasArgument ( $ name ) ) { throw new InvalidArgumentException ( sprintf ( 'The "%s" argument does not exist.' , $ name ) ) ; } $ arguments = \ is_int ( $ name ) ? array_values ( $ this -> arguments ) : $ this -> arguments ; return $ arguments [ $ name ] ; }
docstring: Returns an InputArgument by name or by position.
  
  @param string|int $name The InputArgument name or position
  
  @return InputArgument An InputArgument object
  
  @throws InvalidArgumentException When argument given doesn't exist
docstring_tokens: Returns an InputArgument by name or by position .