Re: RFC Proposal - Attributes read/write visibility
| From: | Daniel Macedo | Date: | Mon, 16 Jul 2012 15:30:15 +0000 |
| Subject: | Re: RFC Proposal - Attributes read/write visibility | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61315@lists.php.net to get a copy of this message | ||
> If you just want an attribute that is:
> - readable from everywhere
> - writable from the current class only
I believe the RFC sugests:
public $a {
private set;
}
Would be enough, if I understand correctly...