original_string: public function restoreFromState($stateData)
      {
          $publicProperties = $this->getExposableModelProperties();
  
          foreach ($publicProperties as $key) {
              if (isset($stateData[$key])) {
                  $this->$key = $stateData[$key];
              }
          }
      }
code: public function restoreFromState($stateData)
      {
          $publicProperties = $this->getExposableModelProperties();
  
          foreach ($publicProperties as $key) {
              if (isset($stateData[$key])) {
                  $this->$key = $stateData[$key];
              }
          }
      }
code_tokens: public function restoreFromState ( $ stateData ) { $ publicProperties = $ this -> getExposableModelProperties ( ) ; foreach ( $ publicProperties as $ key ) { if ( isset ( $ stateData [ $ key ] ) ) { $ this -> $ key = $ stateData [ $ key ] ; } } }
docstring: Restores the model from the passed state data.
  @param string[] $stateData An associative array of state key value pair strings.
docstring_tokens: Restores the model from the passed state data .