Documenting PHP Multiple Inheritance with PhpDoc

I have multiple inheritance like this: Can I extend a class using more than 1 class in PHP? (let's not discuss this approach, please) and I want my IDE to know about inherited methods and properties of the class. Is there a way to do this using PhpDoc?

+6
php multiple-inheritance phpdoc
source share
3 answers

There seems to be no way at present to do this easily. I created a ticket for the PhpStorm tracker. Perhaps they will add support for this feature.

http://youtrack.jetbrains.net/issue/WI-1730

+11
source share

@method anotation should be used for classes that implement __call . In the corresponding note for __get , __set and __isset , @property annotations should be used. The only thing I do not know for sure is whether Eclipse PDT supports these annotations. I know that NetBeans does this.

+2
source share

there is no support for multiple class-level inheritance. This means that you cannot extend more than one class at a time. However, multiple inheritance is supported in interfaces. An interface can extend an arbitrary number of other interfaces at a time.

-3
source share

All Articles