Re: How can I do this -- method chaining
| From: | Stut | Date: | Wed, 30 Jan 2008 15:46:09 +0000 |
| Subject: | Re: How can I do this -- method chaining | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268326@lists.php.net to get a copy of this message | ||
Nathan Nobbe wrote:
Actually no, I mean I would *just* use a static method. If there is no reason to instantiate an object, why would you? -Stut -- http://stut.net/both your and my code use static methods. it sounds to me like you are using the term 'static method' to mean a static method that has a variable with a reference to an instance of the class that it is a member of. which is obviously a particular use of a static method, and therefore a bad practice imho. not the technique, mind you, the label of 'static method' for the technique.It's fairly likely that I'd actually just use a static method here,