RE: [PHP-DEV] [RFC] Accessors : read-only / write-only keywords
| From: | Clint Priest | Date: | Sun, 21 Oct 2012 15:34:03 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Accessors : read-only / write-only keywords | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63589@lists.php.net to get a copy of this message | ||
I think that seems to be the consensus at this point, anyone disagree?
> -----Original Message-----
> From: Levi Morrison [mailto:morrison.levi@gmail.com]
> Sent: Sunday, October 21, 2012 10:26 AM
> To: Amaury Bouchard
> Cc: Nikita Popov; Clint Priest; internals@lists.php.net
> Subject: Re: [PHP-DEV] [RFC] Accessors : read-only / write-only keywords
>
> > If for some reason you need to enforce that nobody inherits it and
> > sets the property, then declaring a setter and issuing an error or
> > exception would suffice.
>
> I meant to say declaring a
private or final setter. Noticed
> that after I sent it.