Changeset 720

Show
Ignore:
Timestamp:
06/10/07 10:52:01 (1 year ago)
Author:
mikey
Message:

added net.stubbles.stubClonable (fixes ticket #61)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/ipo/request/stubRequestValueError.php

    r585 r720  
    77 * @subpackage  ipo_request 
    88 */ 
    9 stubClassLoader::load('net.stubbles.ipo.request.stubRequestValueErrorException'); 
     9stubClassLoader::load('net.stubbles.ipo.request.stubRequestValueErrorException', 
     10                      'net.stubbles.stubClonable' 
     11); 
    1012/** 
    1113 * Class containing error messages for request values. 
     
    2123 * @XMLMethods[XMLMatcher](pattern="/getId|getMessages/") 
    2224 */ 
    23 class stubRequestValueError extends stubSerializableObject 
     25class stubRequestValueError extends stubSerializableObject implements stubClonable 
    2426{ 
    2527    /** 
  • trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php

    r703 r720  
    5252            //        object is clonable or not. Probably think about a new 
    5353            //        interface net.stubbles.stubClonable. 
    54             if (is_object($value) == true && $value instanceof stubObject) { 
     54            if (is_object($value) == true && $value instanceof stubClonable) { 
    5555                $this->$name = clone $this->$name; 
    5656            } 
  • trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotation.php

    r522 r720  
    77 * @subpackage  reflection_annotations 
    88 */ 
     9stubClassLoader::load('net.stubbles.stubClonable'); 
    910/** 
    1011 * Interface for an annotation. 
     
    1314 * @subpackage  reflection_annotations 
    1415 */ 
    15 interface stubAnnotation extends stubSerializable 
     16interface stubAnnotation extends stubSerializable, stubClonable 
    1617{ 
    1718    /** 
     
    3536     */ 
    3637    const TARGET_ALL = 15; 
    37      
     38 
    3839    /** 
    3940     * Sets the name under which the annotation is stored. 
     
    4243     */ 
    4344    public function setAnnotationName($name); 
    44      
     45 
    4546    /** 
    4647     * Returns the name under which the annotation is stored. 
     
    4950     */ 
    5051    public function getAnnotationName(); 
    51      
     52 
    5253    /** 
    5354     * Returns the target of the annotation as bitmap. 
     
    5657     */ 
    5758    public function getAnnotationTarget(); 
    58      
     59 
    5960    /** 
    60      * assure that a clone clones all properties of type object as well 
     61     * assure that a clone clones all properties of type stubClonable as well 
    6162     *  
    6263     * @todo  take comment away as soon as SimpleTests Mock::generate() supports __clone()