public function getMethodAnnotation($method, $name, $default = false)
    {
        $value = $default;

        if (isset($this->methodAnnotations[$method]) === false) {
            $this->methodAnnotations[$method] = $this->parse((string)$this->getMethod($method)->getDocComment());
        }

        if (isset($this->methodAnnotations[$method][$name])) {
            $value = $this->methodAnnotations[$method][$name];
        }

        return $value;
    }
public function getMethodAnnotation($method, $name, $default = false)
    {
        $value = $default;

        if (isset($this->methodAnnotations[$method]) === false) {
            $this->methodAnnotations[$method] = $this->parse((string)$this->getMethod($method)->getDocComment());
        }

        if (isset($this->methodAnnotations[$method][$name])) {
            $value = $this->methodAnnotations[$method][$name];
        }

        return $value;
    }
public function getMethodAnnotation ( $ method , $ name , $ default = false ) { $ value = $ default ; if ( isset ( $ this -> methodAnnotations [ $ method ] ) === false ) { $ this -> methodAnnotations [ $ method ] = $ this -> parse ( ( string ) $ this -> getMethod ( $ method ) -> getDocComment ( ) ) ; } if ( isset ( $ this -> methodAnnotations [ $ method ] [ $ name ] ) ) { $ value = $ this -> methodAnnotations [ $ method ] [ $ name ] ; } return $ value ; }
Get annotation value from method doc. block

@param string $method method name
@param string $name annotation name
@param mixed $default default value
@throws \ReflectionException
@return mixed
Get annotation value from method doc . block