考虑以下PHP 5类:
class SomeClass
{
//I want to document this property...
private $foo;
function __construct()
{
}
public function SetFoo($value)
{
$this->foo = $value;
}
public function GetFoo()
{
return $this->foo;
}
}
如何在phpDocumentor中记录$foo属性?我甚至不确定它是否需要记录下来,但我想知道如果需要的话……
我知道如何记录SetFoo()和GetFoo(),只是对私有属性(变量?)不太确定。
谢谢!
发布于 2010-02-04 03:31:40
/**
* This is what the variable does. The var line contains the type stored in this variable.
* @var string
*/
private $foo;
https://stackoverflow.com/questions/2194822
复制相似问题