NYCPHP Meetup

[nycphp-talk] __get __set methods..

David Mintz dmintz at davidmintz.org
Wed Apr 20 16:58:05 EDT 2005


On Wed, 20 Apr 2005, Alex C wrote:

> I really think these methods might be really handy for predefined
> properties. Am I wrong to think that? just want to understand why this
> might be bad idea to have these functions work with predefined
> properties. with this runner class, i want to exclusively have
> predefine properties for this object.

I might be missing something, but if you want people to be able to get and
set your props directly, why not just make them public and be done with
it?

---
David Mintz
http://davidmintz.org/



More information about the talk mailing list