You can do this by creating stub file for it and then place it anywhere in the project (or reference in any other supported way) -- it never will be executed by PHP -- it's for IDE only.
Stub file is basically a PHP file with class/functions/constants/variables/etc definitions (with proper PHPDoc comment blocks) but all function/method bodies are empty -- that's how all classes/functions/etc that are supported by PhpStorm ATM are implemented (you can Ctrl+Click on any standard PHP function or class and see it yourself).
Hi there,
You can do this by creating stub file for it and then place it anywhere in the project (or reference in any other supported way) -- it never will be executed by PHP -- it's for IDE only.
Stub file is basically a PHP file with class/functions/constants/variables/etc definitions (with proper PHPDoc comment blocks) but all function/method bodies are empty -- that's how all classes/functions/etc that are supported by PhpStorm ATM are implemented (you can Ctrl+Click on any standard PHP function or class and see it yourself).
You can see an example of such files in: