Assuming one has an abstract base class foo with __get() defined, and a child class bar which inherits from foo with a private variable $var, will the parent __get() be called when trying to access the private $var from outside the class?
Assuming one has an abstract base class foo with __get() defined, and a child
Share
Yes.
output:
$ php test.php
Parent (Foo) __get() called for var
25