Re: How can I do this -- method chaining
| From: | Nathan Nobbe | Date: | Thu, 31 Jan 2008 04:40:15 +0000 |
| Subject: | Re: How can I do this -- method chaining | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268413@lists.php.net to get a copy of this message | ||
On Jan 30, 2008 11:29 PM, Casey <heavyccasey@gmail.com> wrote:
> I don't think constructors return the object:
im starting to think this as well.
what for example happens when there is not __construct() method ?
class Test {
private $blah = '';
}
here $blah is part of a new instance, before __construct() would get called,
if it was defined. this makes me think php creates an internal object, and
optionally lets __construct() alter it if defined.
i think somebody may have already said that, but i didnt feel like wading
through the previous posts for it..
-nathan