Re: __init magic method
| From: | Pete Boere | Date: | Tue, 22 Jan 2013 12:41:17 +0000 |
| Subject: | Re: __init magic method | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65080@lists.php.net to get a copy of this message | ||
>
> 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)?
>
It's the overhead of repeatedly calling an accessor method which I'd prefer
to avoid.
--
Pete Boere
Web Developer