Changeset 1082
- Timestamp:
- 11/28/07 14:24:30 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/stubReflectionMethod.php
r1079 r1082 45 45 * constructor 46 46 * 47 * @param string $classNamename of class to reflect48 * @param string $methodName name of method to reflect47 * @param string|stubBaseReflectionClass $class name of class to reflect 48 * @param string $methodName name of method to reflect 49 49 */ 50 public function __construct($class Name, $methodName)50 public function __construct($class, $methodName) 51 51 { 52 if ($class Nameinstanceof stubBaseReflectionClass) {53 $this->refClass = $class Name;52 if ($class instanceof stubBaseReflectionClass) { 53 $this->refClass = $class; 54 54 $this->className = $this->refClass->getName(); 55 55 } else { 56 $this->className = $class Name;56 $this->className = $class; 57 57 } 58 58 … … 125 125 { 126 126 $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 128 132 return $this->refClass; 129 133 } trunk/src/main/php/net/stubbles/reflection/stubReflectionParameter.php
r1080 r1082 42 42 * constructor 43 43 * 44 * @param string $routine name of function to reflect45 * @param string $paramName name of parameter to reflect44 * @param string|array|stubReflectionRoutine $routine name or reflection instance of routine 45 * @param string $paramName name of parameter to reflect 46 46 */ 47 47 public function __construct($routine, $paramName) trunk/src/main/php/net/stubbles/reflection/stubReflectionProperty.php
r1081 r1082 124 124 if ($refClass->getName() === $this->className) { 125 125 if (null === $this->refClass) { 126 $this->refClass = new stubReflectionClass($ refClass->getName());126 $this->refClass = new stubReflectionClass($this->className); 127 127 } 128 128
