I am looking for a way to get PHPStorm to hide some methods from code completion. I tried annotating DocBlocks using @access private , but that does not hide them from the view.
Is there a way to hide a private API without writing / generating a stub file with a limited interface and referring to this in my project?
eg:
Suppose the library has the following in it:
<?php interface IDoABunchOfStuff { public function doFoo(); public function doBar(); } class Foo extends Something implements IDoABunchOfStuff { public function doFoo() {
And the user of my library prints:
<?php myAwesomeFunction(IDoABunchOfStuff $aFoo) { if($->$oFoo->[CTRL+SPACE]
Is it possible (and if so) to ensure that my user never sees _doBar ?
None of the various annotations I tried seem to have the desired effect.
PS I am using PHPStorm 4.0.3
additional:
In this case, I am implementing ArrayAccess, and I do not want offsetGet, offsetSet, offsetExists and offsetUnset clutter my code completion window, but I had similar problems elsewhere to require a more general question.
source share