For a long time I’ve held that __get and __set in PHP were not all that hot - mostly because it’s solely error handling.
There’s no way to deal invoke __get or __set behaviour for properties that are defined on a class. That’s sort of a beef for another post (I’d started an RFC some time ago on trying to extend that behaviour to defined properties as well as undefined, but didn’t finish it, life got in the way, and various other reasons – again, perhaps for another day).
For those who insist on using __get/__set, I *typically* see this sort of style code: