Re: how to mark protected properties?

From: Date: Tue, 08 Jun 2004 11:12:25 +0000
Subject: Re: how to mark protected properties?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30124@lists.php.net to get a copy of this message
Martin Jansen wrote:
So, should @private items be preceeded by "_", nothing, or something else?
I think protected members should be prefixed with "_" as well, because they are semantically more similar to private than to public members. And I also think that we should stick to this rule for PHP 5, too.
-1 As stated before somewhere, protected vars may become public by extending the class. But I agree to keep standards up with private vars. :) Regards, Toby -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info

« previous php.pear.dev (#30124) next »