我在 PHP 中有两个类:Figure和Circle. Circle延伸Figure。Figure有方法draw()。Circle继承此方法并覆盖它。
该draw()方法在父类中被注释,但它在类中没有注释,Circle因为它将继承它。
/**
* Description of Figure
*
* @author admin
*/
class Figure{
/**
* Does something
*/
public function draw() {
}
}
/**
* Description of Circle
*
* @author admin
*/
class Circle extends Figure{
public function draw() {
//overriden method
}
}
Run Code Online (Sandbox Code Playgroud)
Doxygen 说:“警告:Circle 类的成员 draw()(函数)没有记录。”
如何让 Doxygen 放入继承的注释中?