Re: Property Accessors v1.2
| From: | Cal | Date: | Fri, 12 Oct 2012 11:50:34 +0000 |
| Subject: | Re: Property Accessors v1.2 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63372@lists.php.net to get a copy of this message | ||
Le 12/10/2012 11:48, Nikita Popov a écrit :
I've been thinking a bit about the automatic properties again, and noticed that I forgot to name one use case: Asymmetric accessor visibility. Automatic properties may be useful in that context, so that you can write "public $foo { get; protected set; }" (though they don't necessarily need to be implemented as properties with auto generated code, rather just properties with more detailed visibility handling [a bit related to the stuff Amaury has been saying]).I agree.