How to zaustaviti phpstorm to do code hints have a class similar to a singleton?

Good day, there is a class, called it system. This class is a bit specific embodiment of a pattern sington and has only one method __get (well, not counting the constructor).
in the method __get is passed one parameter $class_name.
Then validation occurs. If such a name has already been requested, then the returned object reference, if not, then the plug-in class, create an object and return a reference to it.

The problem is that none of the IDE is not running auto addition in such a method that makes periodically open pluggable classes to be sure that no mistake in writing the method or order of the passed parameters.

Now I'm working in phpStorm, tell me, has anyone encountered this and is there a solution to this problem?
June 10th 19 at 14:58
1 answer
June 10th 19 at 15:00
I'm sorry, he figured.
Using PHPDoc? - Phoebe_Daugher commented on June 10th 19 at 15:03
the magic is solved stably. - kavon.Murphy commented on June 10th 19 at 15:06

Find more questions by tags PhpStorm