original_string: public function getOption($key)
      {
          if (!\array_key_exists($key, $this->options)) {
              throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
          }
  
          $this->checkDeprecatedOption($key);
  
          return $this->options[$key];
      }
code: public function getOption($key)
      {
          if (!\array_key_exists($key, $this->options)) {
              throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
          }
  
          $this->checkDeprecatedOption($key);
  
          return $this->options[$key];
      }
code_tokens: public function getOption ( $ key ) { if ( ! \ array_key_exists ( $ key , $ this -> options ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The Router does not support the "%s" option.' , $ key ) ) ; } $ this -> checkDeprecatedOption ( $ key ) ; return $ this -> options [ $ key ] ; }
docstring: Gets an option value.
  
  @param string $key The key
  
  @return mixed The value
  
  @throws \InvalidArgumentException
docstring_tokens: Gets an option value .