I have a method run()
in TreeGen
class:
class TreeGen implements TreeGenerable{
public function run()
{
...
$this->pushEmptyGroupsToTree($numFighters);
...
}
}
Thing is $this
could be one of the 4 Subclasses of tree gen, and all those method implement different versions of pushEmptyGroupsToTree
.
But PhpStorm is only looking for pushEmptyGroupsToTree
in TreeGen class and off course, I don't have it defined in the super class, so it doesn't detect it.
Is there a way to make him recognize subclass methods?