Re: [PHP-DEV] Accessors v2.2 Patch

2011-12-12 Thread Will Fitch
Clint, How about final public $Hours {} That would allow for the read only and limit the inheritance. Sent from my iPhone On Dec 11, 2011, at 11:02 PM, Clint M Priest cpri...@zerocue.com wrote: https://bugs.php.net/patch-display.php?bug=49526patch=v2.2revision=1323662103 This one

RE: [PHP-DEV] Accessors v2.2 Patch

2011-12-12 Thread Clint M Priest
: Will Fitch [mailto:will.fi...@gmail.com] Sent: Monday, December 12, 2011 5:22 AM To: Clint M Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Accessors v2.2 Patch Clint, How about final public $Hours {} That would allow for the read only and limit the inheritance. Sent from my iPhone

[PHP-DEV] Accessors v2.2 Patch

2011-12-11 Thread Clint M Priest
https://bugs.php.net/patch-display.php?bug=49526patch=v2.2revision=1323662103 This one addresses the read-only, write-only aspects. Though they are not quite what the RFC specifies... class TimePeriod { public $Hours { get { return 5; } } } $o = new TimePeriod(); $o-Hours = 4;