given this example:
class Example
{
private $var;
public function method()
{
$this-> here the IDE will offer the var
}
}
but what if I have this:
class Example
{
//private $var;
public function method()
{
$this-> var will no longer be offered
}
}
so in other words, I want code completion works even there is no actually variable. Thats because I want to use with __get
method. Unfortunatly, I cant use unset($this->var)
.