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