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.
Please sign in to leave a comment.
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:
https://youtrack.jetbrains.com/issue/WI-45672/Using-self-in-include#focus=Comments-27-3327614.0-0
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'.