Re: Class Properties in Interfaces?

From: Date: Tue, 06 May 2008 19:21:12 +0000
Subject: Re: Class Properties in Interfaces?
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-37501@lists.php.net to get a copy of this message
Hi Marcus, et al., Am Dienstag, den 06.05.2008, 09:09 -0700 schrieb Jeff Moore: [...] > I think this is really specifying implementation details in an > interface: I agree. [...] > This looks to me like the best way to handle this in interfaces: > > > interface Coord { > > abstract $coord; > > } I think this is too unspecific. At least the visibility, setter and/or getter and type-hint (assuming we will have type hints) should be defined. Otherwise defining properties in interfaces become useless as it does not tell somebody more except "there is a property". interface Something { public $property { string public function get(); string protected function set(string $value); } } Just my 2¢ cu, Lars

Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.internals (#37501) next »