Re: About Coding Standard and Private class Property (on PHP5)
| From: | Chuck Burgess | Date: | Wed, 27 May 2009 00:12:23 +0000 |
| Subject: | Re: About Coding Standard and Private class Property (on PHP5) | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-5338@lists.php.net to get a copy of this message | ||
On Tue, May 26, 2009 at 5:42 PM, Laurent Laville
<pear@laurent-laville.org>wrote:
> Hi PEAR QA team,
>
> As I've a big doubt about underscore prefix or not for private class
> property , I prefer to ask !
>
> There is an answer for Protected [1], but what is status for private
>
> On PHP5, should I wrote ?
>
> class Foo
> {
> private static $instances;
> }
>
> or
>
> class Foo
> {
> private static $_instances;
> }
>
> Thanks in advance
>
>
> [1] http://pear.php.net/manual/en/rfc.protected-members.php
>
That same proposal says "Private members will still be prefixed", so answer
would be "yes, prefix the privates".
--
CRB