original_string: public function option($key, $value = null)
      {
          if (is_null($value)) {
              return $this->options[$key];
          }
  
          $this->options[$key] = $value;
  
          return $this;
      }
code: public function option($key, $value = null)
      {
          if (is_null($value)) {
              return $this->options[$key];
          }
  
          $this->options[$key] = $value;
  
          return $this;
      }
code_tokens: public function option ( $ key , $ value = null ) { if ( is_null ( $ value ) ) { return $ this -> options [ $ key ] ; } $ this -> options [ $ key ] = $ value ; return $ this ; }
docstring: Get or set option for grid.
  
  @param string $key
  @param mixed  $value
  
  @return $this|mixed
docstring_tokens: Get or set option for grid .