This post originated from an RSS feed registered with PHP Buzz
by Jeff Moore.
Original Post: Let Your Properties be Properties
Feed Title: Professional PHP
Feed URL: http://www.procata.com/blog/archives/category/php/feed/
Feed Description: Web Development with PHP, PHP Advocacy and Best Practices.
There is a coding pattern that I see (and have used) in PHP code that defines generic methods on a class for setting and getting properties.
function set($name, $value);
function get($name);
Google code search for examples
Some times there are some ancillary methods to deal with unsetting, checking for existence, setting via an array, or dealing with references in [...]