note 21927 deleted from function.is-a by nlopess

From: Date: Fri, 09 Apr 2004 14:29:39 +0000
Subject: note 21927 deleted from function.is-a by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67896@lists.php.net to get a copy of this message
Note Submitter: ben-xo@NOSPAMdubplatesNOSPAM.org ---- An example of a good type of class which doesnt need any values (just functions) is an object which is a string processor of some kind. This way you can do things like $sqlString .= $mySearchBox->getQueryFragment(new MyStringProcessor()); ... which avoids the need to use callbacks or to create many extended versions of MySearchBox. So, "empty" objects are both legal, and very useful.

« previous php.notes (#67896) next »