This is difficult to phrase, but what I would like to know is if it is possible for a php file to have auto completes enabled for class methods even if that file does not mention the class This is possible if I add $variable = new Object(); to a file directly, but in this case, it is not desirable to do so.
In particular, I have nearly pure html files that are included by objects (view files in an mvc pattern). In these files, I can run use $this->objectMethod, and it works in php, but no auto completes are generated. Clearly, phpstorm cannot find the unspecified object, which makes sense. But I am wondering if I can set some flag or otherwise make phpstorm treat a certain group of files AS IF a class/object has been instantiated within them, so I can get autocompletes in these files.
(I hope this is clear.)