Changeset 1070

Show
Ignore:
Timestamp:
11/27/07 00:22:45 (1 year ago)
Author:
mikey
Message:

added parenthesis to distinguish method annotations from property annotations

Files:

Legend:

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

    r1016 r1070  
    6363    public function hasAnnotation($annotationName) 
    6464    { 
    65         return stubAnnotationFactory::has($this->docComment, $annotationName, stubAnnotation::TARGET_METHOD, $this->className.'::'.$this->methodName, $this->getFileName()); 
     65        return stubAnnotationFactory::has($this->docComment, $annotationName, stubAnnotation::TARGET_METHOD, $this->className . '::' . $this->methodName . '()', $this->getFileName()); 
    6666    } 
    6767 
     
    7575    public function getAnnotation($annotationName) 
    7676    { 
    77         return stubAnnotationFactory::create($this->docComment, $annotationName, stubAnnotation::TARGET_METHOD, $this->className.'::'.$this->methodName, $this->getFileName()); 
     77        return stubAnnotationFactory::create($this->docComment, $annotationName, stubAnnotation::TARGET_METHOD, $this->className . '::' . $this->methodName . '()', $this->getFileName()); 
    7878    } 
    7979