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 [];
}
}