How to document class properties in PHP 5 with phpDocumentor

后端 未结 4 682
感情败类
感情败类 2020-12-30 20:41

Take in consideration the following PHP 5 class:

class SomeClass
{
    //I want to document this property...
    private $foo;


    function __construct()
          


        
4条回答
  •  囚心锁ツ
    2020-12-30 21:26

    /**
     * This is what the variable does. The var line contains the type stored in this variable.
     * @var string
     */
    private $foo;
    

提交回复
热议问题