private function extractName($doc) { if (preg_match("#@Named\\(\"([A-Za-z0-9_]*)\"\\)#s", $doc, $matched)) { return $matched[1]; } return ''; }