original_string: public function getOptions($option = null)
      {
          $this->getAdapterOptions();
          if ($option !== null) {
              if (!isset($this->options[$option])) {
                  throw new Exception\RuntimeException(sprintf(
                      'Options "%s" not found',
                      $option
                  ));
              }
              return $this->options[$option];
          }
          return $this->options;
      }
code: public function getOptions($option = null)
      {
          $this->getAdapterOptions();
          if ($option !== null) {
              if (!isset($this->options[$option])) {
                  throw new Exception\RuntimeException(sprintf(
                      'Options "%s" not found',
                      $option
                  ));
              }
              return $this->options[$option];
          }
          return $this->options;
      }
code_tokens: public function getOptions ( $ option = null ) { $ this -> getAdapterOptions ( ) ; if ( $ option !== null ) { if ( ! isset ( $ this -> options [ $ option ] ) ) { throw new Exception \ RuntimeException ( sprintf ( 'Options "%s" not found' , $ option ) ) ; } return $ this -> options [ $ option ] ; } return $ this -> options ; }
docstring: Get individual or all options from underlying adapter options object
  
  @param  string|null $option
  @return mixed|array
docstring_tokens: Get individual or all options from underlying adapter options object