EzSystems\PlatformBehatBundle\Context\Argument\AnnotationArgumentResolver::getMethodAnnotations PHP Метод

getMethodAnnotations() приватный Метод

Returns a array with the method annotations.
private getMethodAnnotations ( $refClass, $method = '__construct' ) : array
Результат array array annotations
    private function getMethodAnnotations($refClass, $method = '__construct')
    {
        if ($refClass->hasMethod($method)) {
            $refMethod = $refClass->getMethod($method);
            preg_match_all('#@(.*?)\\n#s', $refMethod->getDocComment(), $matches);
            return $matches[1];
        } else {
            return [];
        }
    }