How to mark array value types in PHP (Java)Doc?
- by Christian Sciberras
It might be a bit difficult to explain, so I'll give some example code. Note that I'm using NetBeans IDE (latest).
class Dummy {
public function say(){ }
}
/**
* Builds dummy class and returns it.
* @return Dummy The dummy class.
*/
function say_something(){
return new Dummy();
}
$s=say_something();
While developing in netbeans I can…