Re: RFC Proposal - Attributes read/write visibility

From: 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 [email protected] 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...


Thread (21 messages)

« previous php.internals (#61315) next »