예제 #1
0
 /**
  * __sleep
  *
  * Called to prepare the object for serialization
  *
  * @access public
  * @return array list of properties to serialize
  */
 public function __sleep()
 {
     if (!$this->objectReferenced) {
         $this->ReferenceObject();
     }
     if (!$this->commitReferenced) {
         $this->ReferenceCommit();
     }
     $properties = array('dataRead', 'object', 'commit', 'type', 'tagger', 'taggerEpoch', 'taggerTimezone', 'comment', 'objectReferenced', 'commitReferenced');
     return array_merge($properties, parent::__sleep());
 }
예제 #2
0
 /**
  * Called to prepare the object for serialization
  *
  * @return string[] list of properties to serialize
  */
 public function __sleep()
 {
     $properties = array('dataRead', 'object', 'commitHash', 'type', 'tagger', 'taggerEpoch', 'taggerTimezone', 'comment');
     return array_merge($properties, parent::__sleep());
 }