Redbean PHP, PHPDoc?

I just recently started playing with Redbean PHP. Due to the nature of how it is implemented, any methods/properties I create are not included in code completion. Is there any way to mitigate this with PHPDoc?



Comment actions Permalink

Hi Christian,

TBH I have not looked at RedBeanPHP and how it is implemented (yet), so do no treat this as any kind of answer (just wanted to post some related tickets):

Comment actions Permalink

Thanks for your help. I put some different ideas together and figured it out.

1. @property PHPDocs for properties due to use of magic methods
2. @var PHPDocs pointing at the corresponding FUSE extension class for any "beans" returned.
3. For arrays of "beans" you can use /* @var $examples Model_Expample[] */


Please sign in to leave a comment.