Re: RFC: Property get/set syntax (added isset/unset and references)
| From: | Stas Malyshev | Date: | Tue, 24 Apr 2012 17:33:37 +0000 |
| Subject: | Re: RFC: Property get/set syntax (added isset/unset and references) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60288@lists.php.net to get a copy of this message | ||
Hi!
> These would also include automatic implementations which call the
> respective functions on the backing field. I could see only allowing
> isset/unset automatic implementations if get/set were also specified
> as automatic implementations.
Another thing about that. The "automatic implementation" creates
variable starting with __. When exactly this happens - if all bodies are
not defined? Any of the bodies are not defined? What if I implement
interface like this:
interface iSampleInterface {
public $MyProperty {
get;
set;
}
}
Does this produce automatic __MyProperty or not?
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227