I have found a way to say netbeans type of variable in such way:
/* @var $variablename Type */
However in this case there are no hints (Database is my class):
//model.php
abstract class Model {
/* @var $db Database */
protected $db;
(...)
}
//Mymodel.php
class MyModel extends Model {
(...)
$this->db-> //no hints
(...)
}
Is it Netbeans limit or rather my mistake?
First of all, define the variable type first, like this:
And secondly I would suggest to use phpdoc commenting, like:
Should have no issues then…