Re: A question of style - Properties
| From: | clayton collie | Date: | Mon, 30 Apr 2001 14:52:27 +0000 |
| Subject: | Re: A question of style - Properties | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-338@lists.php.net to get a copy of this message | ||
chuck,
actually my question is slightly different. in my object, i have
"properties" that may trigger actions in the library that implements it. as
a simple example setting $url_fetcher->url = "http://php.net" would load the
page into an internal buffer. the code is written in C so, im talking
properties in the zend "overloaded" sense of the term (for instance in the
COM module) .
<chuck@horde.org> wrote in message
news:988634376.3aed5d0821378@marina.horde.org...
> Quoting Mika Tuupola <tuupola@appelsiini.net>:
>
> Here's a rule of thumb: if the property is something that should be
exposed as
> part of an object's API, then there should be get/set methods for it. That
way
> you can change internal data structures, variable names, add logic, etc.
> without breaking your API.
>
> -chuck