记录使用 __call() 的 PHP 类
我想知道是否有一种方法可以强制 phpDocumentor 打印出当您使用 __call()
动态执行获取和设置时可以使用的潜在方法。
对于我的简单 getter,我希望它循环遍历所有私有变量,然后将 get
附加到它们(当然,第一个字母大写)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 phpDocumentor 参考
@method
。See the phpDocumentor reference on
@method
.