Changeset 1082

Show
Ignore:
Timestamp:
11/28/07 14:24:30 (11 months ago)
Author:
mikey
Message:

updated doc comments
conformed declaring class handling for method and property

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionMethod.php

    r1079 r1082  
    4545     * constructor 
    4646     * 
    47      * @param  string  $className   name of class to reflect 
    48      * @param  string  $methodName  name of method to reflect 
     47     * @param  string|stubBaseReflectionClass  $class       name of class to reflect 
     48     * @param  string                          $methodName  name of method to reflect 
    4949     */ 
    50     public function __construct($className, $methodName) 
     50    public function __construct($class, $methodName) 
    5151    { 
    52         if ($className instanceof stubBaseReflectionClass) { 
    53             $this->refClass   = $className
     52        if ($class instanceof stubBaseReflectionClass) { 
     53            $this->refClass   = $class
    5454            $this->className  = $this->refClass->getName(); 
    5555        } else { 
    56             $this->className  = $className
     56            $this->className  = $class
    5757        } 
    5858         
     
    125125    { 
    126126        $refClass = parent::getDeclaringClass(); 
    127         if ($refClass->getName() === $this->className && null !== $this->refClass) { 
     127        if ($refClass->getName() === $this->className) { 
     128            if (null !== $this->refClass) { 
     129                $this->refClass = new stubReflectionClass($this->className); 
     130            } 
     131             
    128132            return $this->refClass; 
    129133        } 
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionParameter.php

    r1080 r1082  
    4242     * constructor 
    4343     * 
    44      * @param  string  $routine    name of function to reflect 
    45      * @param  string  $paramName  name of parameter to reflect 
     44     * @param  string|array|stubReflectionRoutine  $routine    name or reflection instance of routine 
     45     * @param  string                              $paramName  name of parameter to reflect 
    4646     */ 
    4747    public function __construct($routine, $paramName) 
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionProperty.php

    r1081 r1082  
    124124        if ($refClass->getName() === $this->className) { 
    125125            if (null === $this->refClass) { 
    126                 $this->refClass = new stubReflectionClass($refClass->getName()); 
     126                $this->refClass = new stubReflectionClass($this->className); 
    127127            } 
    128128