original_string: public function setOption($key, $value): void
      {
          $method = 'set' . Str::toCamelCase($key);
          if (method_exists($this, $method)) {
              $this->$method($value);
          } else {
              $this->options[$key] = $value;
          }
      }
code: public function setOption($key, $value): void
      {
          $method = 'set' . Str::toCamelCase($key);
          if (method_exists($this, $method)) {
              $this->$method($value);
          } else {
              $this->options[$key] = $value;
          }
      }
code_tokens: public function setOption ( $ key , $ value ) : void { $ method = 'set' . Str :: toCamelCase ( $ key ) ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ value ) ; } else { $ this -> options [ $ key ] = $ value ; } }
docstring: Set option by key over setter
  
  @param  string $key
  @param  string $value
  
  @return void
docstring_tokens: Set option by key over setter