I often give objects static methods and properties that do not require the object to be initialized. For example: Now we subclass these objects and have some sort of controller that returns an object class string under certain circumstances where the object should not yet be initialized. For example: At times I might want to call the static function SomeObject::getSomeStaticString()
Tag: phpdoc
PHPStorm: correct PHPDoc for a Collection of Objects?
I’m using the PHPStorm IDE, and run into trouble when I run the code inspection. I have a method which returns a collection of objects. The Collection itself is an object, which has its own methods, and implements the Traversable interface: If I document findByUser() to return a Collection, the code inspection understands the methods on this object, but doesn’t
Variable type hinting in Netbeans (PHP)
Just curious if there’s a way in netbeans to give type hints for regular variables, so that intellisense picks it up. I know you can do it for class properties, function parameters, return types, etc. but I can’t figure out how to do it for regular variables. It’s something that would really help in situations where you have a method