Search code examples
phpdynamicdocumentation-generationphpdocgetter-setter

Documenting PHP classes that use __call()


I was wondering if there is a way to force phpDocumentor to print out the potential methods you could use for getting and setting when you do them dynamically with a __call().

In the case of my simple getter, I would want it to cycle through all private variables and just append get to them (and uppercase the first letter, of course).


Solution

  • See the phpDocumentor reference on @method.