Well, you can use the hinting type to do what you want:
public function Testify(Test $test) { }
Either this or the dock block:
It depends on the IDE and how it chooses type hints ... I know that NetBeans is smart enough to pick up a hint like Testify(Test $test) and let you go from there, but some other IDEs are not that smart ... So it really depends on your IDE, the answer to which will give you autocomplete ...
source share