brsastre Posted September 5, 2015 Share Posted September 5, 2015 What is a 'getter context'? "PHP invokes the __get() method if a property is undefined (or inaccessible) and called in a getter context. The method accepts one argument, the name of the property. It should return a value which is treated as the value of the property." Quote Link to comment https://forums.phpfreaks.com/topic/298064-getter-context/ Share on other sites More sharing options...
requinix Posted September 5, 2015 Share Posted September 5, 2015 That would be trying to get the value of a property, such as $variable = $object->property;or $variable = $object->property->another_property; Quote Link to comment https://forums.phpfreaks.com/topic/298064-getter-context/#findComment-1520287 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.