RE: [PHP-DEV] Accessors v2 Patch
| From: | Clint M Priest | Date: | Mon, 12 Dec 2011 01:01:46 +0000 |
| Subject: | RE: [PHP-DEV] Accessors v2 Patch | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56876@lists.php.net to get a copy of this message | ||
To be complete I should probably add something to the reflection system as well. At present the
getters/setters would show up as functions.
What would be preferable?
1) Show up as regular functions and let users fend for themselves?
2) Hide from getMethods() and:
2.1) Provide getAccessors() - Probably returning a new ReflectionPropertyAccessor class?
2.2) Provide getGetters(), getSetters()
3) Modify ReflectionProperty to include hasGetter() and hasSetter()
Comments?
-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Sunday, December 11, 2011 6:47 PM
To: Clint M Priest
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] Accessors v2 Patch
oh right, I missed them. Yes, so it is covered as well :)
On Mon, Dec 12, 2011 at 1:42 AM, Clint M Priest <cpriest@zerocue.com> wrote:
> There are already two tests against private read and private write, should I add two for
> protected as well?
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org