original_string: protected function _restoreFromArray(array $spec)
      {
          foreach ($spec as $key => $value) {
              if (property_exists($this, $key)) {
                  $this->{$key} = $value;
              }
          }
      }
code: protected function _restoreFromArray(array $spec)
      {
          foreach ($spec as $key => $value) {
              if (property_exists($this, $key)) {
                  $this->{$key} = $value;
              }
          }
      }
code_tokens: protected function _restoreFromArray ( array $ spec ) { foreach ( $ spec as $ key => $ value ) { if ( property_exists ( $ this , $ key ) ) { $ this -> { $ key } = $ value ; } } }
docstring: Restore object state from array
  
  @param  array $spec
  @return void
docstring_tokens: Restore object state from array