static function parseMethods($class) { $rc = new \ReflectionClass($class); foreach ($rc->getMethods() as $m) { (yield $m => DocComment::parse($m->getDocComment())); } }