Is there an opportunity, that will allow it to declare a variable in php as a specific object, so that IDEs like Netbeans can detect that Object and suggest me the possible methods and variable in that class?
What I know, is that it works with function like this example:
public static function add(\Event $element) { //The $element variable is now declared, that it have to be an Event object } In the theory, my question looks like this:
\Event $events = EventContainer::getAll(); But unfortunately that wouldn't work.
/** @var $abc testClass */anywhere in your code.