original_string: public function setExtra($extra)
      {
          $resultData = $this->hydrateIfJsonToArray($extra);
          if (!empty($resultData)) {
              $this->extra = $resultData;
          }
          else {
              $this->extra = [];
          }
      }
code: public function setExtra($extra)
      {
          $resultData = $this->hydrateIfJsonToArray($extra);
          if (!empty($resultData)) {
              $this->extra = $resultData;
          }
          else {
              $this->extra = [];
          }
      }
code_tokens: public function setExtra ( $ extra ) { $ resultData = $ this -> hydrateIfJsonToArray ( $ extra ) ; if ( ! empty ( $ resultData ) ) { $ this -> extra = $ resultData ; } else { $ this -> extra = [ ] ; } }
docstring: Set data to extra array
  
  @param string|array  $extra  Data that need to be set into extra array
  
  @return void
docstring_tokens: Set data to extra array