Re: Date methods simplified

From: Date: Wed, 22 May 2002 13:58:08 +0000
Subject: Re: Date methods simplified
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6332@lists.php.net to get a copy of this message
On Wed, 22 May 2002, Alan Knowles wrote: > guess they come from the java port, however in PHP unless the seconds > where private, $this->_seconds etc., or when php5 adds private var, the > tempation would be to access these directly??? This is might be a matter of taste, but I allways prefer having get methods for all variables and using them. This way you can be sure you don't have to change any code using the class if internal presentation of the variable changes. -- Mika Tuupola http://www.appelsiini.net/~tuupola/

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