How to point to class in external files-methods?

Good time of day to all.

In project for some classes i store some method in separate files, later special builder combine all together, but during editing in this file-method, i need to use 'self'. And it of cause doesn't see required class, because don't know which one. Can i some how in each file-method point to this class?

All method files placed under same directory, class file just on some level upper.


Basically, I see no option that may be used here, sorry.
It is not possible to override self (but $this can be overridden still), this is a PHPDoc limitation:


Many thanks for info. For one part of cases, $this really can solve my problem, but for other.... yep its a sad to miss such functionality for 'self'.


Please sign in to leave a comment.