style code

magic __get and __set style? - Michael Kimsal

Planet PHP  Sun, 12/19/2010 - 14:59

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:


 

Gerrit: Google-style code review meets git

Linux Today  Thu, 11/19/2009 - 06:03

LWN.net: "Gerrit, a Git-based system for managing code review, is helping to spread the popular distributed revision control system into Android-using companies, many of which have heavy quality assurance, management, and legal processes around software."