Re: __init magic method
| From: | Marco Pivetta | Date: | Tue, 22 Jan 2013 12:33:41 +0000 |
| Subject: | Re: __init magic method | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65079@lists.php.net to get a copy of this message | ||
@Pete actually, your "less than elegant" solution seems quite enough for
this use case.
What's your use case for this kind of static properties? What if you make
them private/protected and use an accessor method to initialize them (and
avoid the overhead during autoloading)?
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/