original_string: protected function setHashingAndSave($hash)
      {
          // Set hashing state
          $hashing = $this->getHashing();
          $this->setHashing($hash);
  
          // Save the model
          $result = $this->save();
  
          // Reset hashing back to it's previous state
          $this->setHashing($hashing);
  
          return $result;
      }
code: protected function setHashingAndSave($hash)
      {
          // Set hashing state
          $hashing = $this->getHashing();
          $this->setHashing($hash);
  
          // Save the model
          $result = $this->save();
  
          // Reset hashing back to it's previous state
          $this->setHashing($hashing);
  
          return $result;
      }
code_tokens: protected function setHashingAndSave ( $ hash ) { // Set hashing state $ hashing = $ this -> getHashing ( ) ; $ this -> setHashing ( $ hash ) ; // Save the model $ result = $ this -> save ( ) ; // Reset hashing back to it's previous state $ this -> setHashing ( $ hashing ) ; return $ result ; }
docstring: Set hashing state and then save and then reset it.
  
  @param bool $hash
  
  @return bool
docstring_tokens: Set hashing state and then save and then reset it .