Re: How can I do this -- method chaining
| From: | Jochem Maas | Date: | Thu, 31 Jan 2008 00:53:23 +0000 |
| Subject: | Re: How can I do this -- method chaining | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268388@lists.php.net to get a copy of this message | ||
Richard Lynch schreef:
I believe the constructor returns the object created, with no chance in userland code of altering that fact, over-riding the return value, or any other jiggery-pokery to that effect. New causes the constructor to be called in the first place, and that's about it. The assignment to a variable is done by the assignment operator "=" and is not required if you don't have any need to actually keep the object around in a variable.I thought that's what I said. maybe less clearly :-)