Changeset 720
- Timestamp:
- 06/10/07 10:52:01 (1 year ago)
- Files:
-
- trunk/src/main/php/net/stubbles/ipo/request/stubRequestValueError.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotation.php (modified) (6 diffs)
- trunk/src/main/php/net/stubbles/stubClonable.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/request/stubRequestValueError.php
r585 r720 7 7 * @subpackage ipo_request 8 8 */ 9 stubClassLoader::load('net.stubbles.ipo.request.stubRequestValueErrorException'); 9 stubClassLoader::load('net.stubbles.ipo.request.stubRequestValueErrorException', 10 'net.stubbles.stubClonable' 11 ); 10 12 /** 11 13 * Class containing error messages for request values. … … 21 23 * @XMLMethods[XMLMatcher](pattern="/getId|getMessages/") 22 24 */ 23 class stubRequestValueError extends stubSerializableObject 25 class stubRequestValueError extends stubSerializableObject implements stubClonable 24 26 { 25 27 /** trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php
r703 r720 52 52 // object is clonable or not. Probably think about a new 53 53 // interface net.stubbles.stubClonable. 54 if (is_object($value) == true && $value instanceof stub Object) {54 if (is_object($value) == true && $value instanceof stubClonable) { 55 55 $this->$name = clone $this->$name; 56 56 } trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotation.php
r522 r720 7 7 * @subpackage reflection_annotations 8 8 */ 9 stubClassLoader::load('net.stubbles.stubClonable'); 9 10 /** 10 11 * Interface for an annotation. … … 13 14 * @subpackage reflection_annotations 14 15 */ 15 interface stubAnnotation extends stubSerializable 16 interface stubAnnotation extends stubSerializable, stubClonable 16 17 { 17 18 /** … … 35 36 */ 36 37 const TARGET_ALL = 15; 37 38 38 39 /** 39 40 * Sets the name under which the annotation is stored. … … 42 43 */ 43 44 public function setAnnotationName($name); 44 45 45 46 /** 46 47 * Returns the name under which the annotation is stored. … … 49 50 */ 50 51 public function getAnnotationName(); 51 52 52 53 /** 53 54 * Returns the target of the annotation as bitmap. … … 56 57 */ 57 58 public function getAnnotationTarget(); 58 59 59 60 /** 60 * assure that a clone clones all properties of type objectas well61 * assure that a clone clones all properties of type stubClonable as well 61 62 * 62 63 * @todo take comment away as soon as SimpleTests Mock::generate() supports __clone()
