Re: [RFC] Object Initializer
| From: | Michał Brzuchalski | Date: | Sat, 14 Sep 2019 09:26:47 +0000 |
| Subject: | Re: [RFC] Object Initializer | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107091@lists.php.net to get a copy of this message | ||
Hi Mike,
sob., 14 wrz 2019 o 10:32 Mike Schinkel <mike@newclarity.net> napisał(a):
>
> However, Object Initializers might be best when paired with a new magic
> method which let us call *__init(),* and a *required* modifier for
> properties.
>
> Using your Customer example, the __init() would be automatically called
> after __construct():
>
>
Thank for your feedback and ideas, but I decided not to include it in the
RFC.
Thanks in advance,
Michał Brzuchalski