src/Common/Reflection/Annotations.php
public function getMethod(string $methodName, $tags = '*'): array
    {
        try {
            $method = new ReflectionMethod($this->className, $methodName);
        } catch (ReflectionException $e) {
            return [];
        }

        return $this->parse($method->getDocComment(), $tags);
    }
public function getMethod(string $methodName, $tags = '*'): array
    {
        try {
            $method = new ReflectionMethod($this->className, $methodName);
        } catch (ReflectionException $e) {
            return [];
        }

        return $this->parse($method->getDocComment(), $tags);
    }
public function getMethod ( string $ methodName , $ tags = '*' ) : array { try { $ method = new ReflectionMethod ( $ this -> className , $ methodName ) ; } catch ( ReflectionException $ e ) { return [ ] ; } return $ this -> parse ( $ method -> getDocComment ( ) , $ tags ) ; }
Get a methods annotation tags

@param  string $methodName
@param  string|array  $tags   Tag(s) to retrieve, by default($tags = '*'), it look for every tags
@return array
Get a methods annotation tags