In my structure, I have a method that returns an array with objects. It looks something like this:
public function getActions() {
return $this->actions;
}
The user of this Classwill receive a call to doc-popup when calling this method, which only says that this method will return an array. But this! Then, when the user gets the object from the array, the IDE is just stupid and doesn't know / suggest / autofill anything.
Is there anything I can do as an infrastructure developer to make life easier for users of the framework? Or what else can I suggest they do, so their IDE knows which object is returned from the array?
Or in general: How to let the IDE know which object came from the array so that it can suggest what methods are available for this object?