Take in consideration the following PHP 5 class:
class SomeClass
{
//I want to document this property...
private $foo;
function __construct()
In the case you use a __get and __set magic methods you can use @property
/**
* Description for the class
* @property type $foo Description for foo
* @property type $foo Description for bar
*/
class SomeClass
{
private $foo;
protected $bar;
public function __get(){
...
}
public function __set(){
...
}
}
Links with more info: