Changeset 703
- Timestamp:
- 06/02/07 14:04:46 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php
r522 r703 22 22 */ 23 23 protected $annotationName; 24 24 25 25 /** 26 26 * Sets the name under which the annotation is stored. … … 28 28 * @param string $name 29 29 */ 30 public function setAnnotationName($name) { 30 public function setAnnotationName($name) 31 { 31 32 $this->annotationName = $name; 32 33 } 33 34 34 35 /** 35 36 * Returns the name under which the annotation is stored. … … 37 38 * @return string 38 39 */ 39 public function getAnnotationName() { 40 public function getAnnotationName() 41 { 40 42 return $this->annotationName; 41 43 } 42 44 43 45 /** 44 * assure that a clone clones all properties o gtype object as well46 * assure that a clone clones all properties of type object as well 45 47 */ 46 48 public function __clone() 47 49 { 48 50 foreach (get_object_vars($this) as $name => $value) { 49 if (is_object($value) == true) { 51 // FIXME: stubObject is not a really good indication of whether the 52 // object is clonable or not. Probably think about a new 53 // interface net.stubbles.stubClonable. 54 if (is_object($value) == true && $value instanceof stubObject) { 50 55 $this->$name = clone $this->$name; 51 56 }
