Changeset 726
- Timestamp:
- 06/10/07 12:24:01 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php
r725 r726 68 68 * not the reflection class itself because it can not be serialized 69 69 * 70 * @return array<string> 70 * @return array<string> list of properties to serialize 71 71 */ 72 72 public function __sleep() 73 73 { 74 $propertiesToSerialize = array(); 74 $propertiesToSerialize = array(); 75 $this->reflectedClasses = array(); 76 $this->_serializedProperties = array(); 75 77 foreach (get_object_vars($this) as $name => $value) { 76 78 if ($value instanceof stubReflectionClass) { 77 79 $this->reflectedClasses[$name] = $value->getFullQualifiedClassName(); 80 } elseif ($value instanceof stubSerializable) { 81 $this->_serializedProperties[$name] = $value->getSerialized(); 78 82 } else { 79 83 $propertiesToSerialize[] = $name; … … 89 93 public function __wakeup() 90 94 { 95 parent::__wakeup(); 91 96 foreach ($this->reflectedClasses as $propertyName => $reflectedClasses) { 92 97 $this->$propertyName = new stubReflectionClass($reflectedClasses);
