记录使用__call()的PHP类

记录使用__call()的PHP类

问题描述:

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).

我想知道是否有办法强制phpDocumentor打印出可用于获取和设置的潜在方法 当你使用 __ call() code>动态地执行它们时。 p>

在我的简单getter的情况下,我希望它循环遍历所有私有变量并只是追加 get code>给他们(当然,大写第一个字母)。 p> div>

See the phpDocumentor reference on @method.