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