class Foo extends Nette\Object
{
private $bar;
public function getBar()
{
return $this->bar;
}
}
$foo = new Foo;
echo $foo->bar; // IDE complains "Member has private access, but class has magic method __get"
I think it would be better if this message did not appear since the class has the getter. Is it a good idea, bad idea or a bug? OfC I'm not sure it's easy/possible to do.
Given there is this code.
I think it would be better if this message did not appear since the class has the getter. Is it a good idea, bad idea or a bug? OfC I'm not sure it's easy/possible to do.