How to document a method that modifies a protected attribute with phpdoc?

Papsgasplow

New Member
What's the best way to document a method that modifies a protected attribute with phpdoc?For instance, what is the correct way of documenting the setVar() method below?\[code\]class Test { protected $variables = array(); public function setVar($name, $value) { $this->$variables[$name] = $value; }}\[/code\]Thanks in advance,.L.
 
Back
Top