Using PhpStorm: My code is passing a Instantiated Class as a Parameter into a function. I know that className is a reference to a particular class. But is there anyway to let my code become aware of what ClassName is?
$(document).on('validSelection', function(event,className){
alert( className.sayHello() );
});
This would really make coding this particular function a lot easier since I plan on using ClassName a lot. In php, you can force the recognition by do somethings like:
/* @var $variable ClassName */
alert( className.helloWorld() );would work.className.s...sayHello()pops up in a fairly short list.