Doxygen: how to describe class member variables in php?

后端 未结 7 743
野性不改
野性不改 2020-12-14 19:47

I\'m trying to use doxygen to parse php code into xml output. Doxygen does not parse description of class member variables.

Here is my sample php file:



        
7条回答
  •  情书的邮戳
    2020-12-14 20:30

    I had the same problem, so I've created a simple input filter which turns the basic syntax of

    /**
     * @var int
     */
    public $id;
    

    into

    /**
     * @var int $id
     */
    public $id;
    

    which would be redundant anyway. This way the Eclipse IDE can use the same docblock as doxygen.

    You can download the input filter from here:

    https://bitbucket.org/tamasimrei/misc-tools/src/master/doxygen/filter.php

    See the doxygen Manual on how to use an input filter.

    The tool also escapes backslashes in docblocks, so you could use namespaces there.

提交回复
热议问题