pradosoft / prado

Prado - Component Framework for PHP
Other
186 stars 70 forks source link

#898 Magic Method access to getter/setter/methods is determined by caller relation to implementation #921

Closed belisoful closed 1 year ago

belisoful commented 1 year ago

There is a large number of test units to make sure that access is proper from all angles: // Test public External calls parent access Parent property (public, protected, and private) External calls child access child property. " External calls parent access child property. " External calls child access parent property. "

// test protected and private: Parent calls parent access Parent property (public, protected, and private) Parent calls child access child property. " Parent calls parent access child property. " Parent calls child access parent property. "

child calls parent access Parent property (public, protected, and private) child calls child access child property. " child calls parent access child property. " child calls child access parent property. "