Re: private, protected, readonly, public

From: Date: Wed, 17 May 2006 22:13:38 +0000
Subject: Re: private, protected, readonly, public
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Stanislav Malyshev wrote:
This would be, however, yet another level of complexity added to the language... I think that for the end user it becomes less complicated ...
Try to explain a newbie how to properly use getters or setters or even explain him the magic method (using __get and __set) . Or try to explain him to use a simple extra keyword in his declaration of the variable.

Thread (92 messages)

« previous php.internals (#23560) next »