I have refactored AnnotationParser::parsePhp and you can use it - a226dea3948c9b25fcd96a952a472305bc5a09c8