original_string: public function setFrontendData($key, $value = null): void
      {
          if (is_array($key)) {
              foreach ($key as $k => $v) {
                  $this->setFrontendData($k, $v);
              }
              return;
          }
          $this->_frontendData['jsonData'][$key] = $value;
      }
code: public function setFrontendData($key, $value = null): void
      {
          if (is_array($key)) {
              foreach ($key as $k => $v) {
                  $this->setFrontendData($k, $v);
              }
              return;
          }
          $this->_frontendData['jsonData'][$key] = $value;
      }
code_tokens: public function setFrontendData ( $ key , $ value = null ) : void { if ( is_array ( $ key ) ) { foreach ( $ key as $ k => $ v ) { $ this -> setFrontendData ( $ k , $ v ) ; } return ; } $ this -> _frontendData [ 'jsonData' ] [ $ key ] = $ value ; }
docstring: Allows manipulating frontend data
  
  @param string|array $key Either the key or an array
  @param mixed $value Value
  @return void
docstring_tokens: Allows manipulating frontend data