Re: protected interface methods

From: Date: Thu, 03 Jul 2003 23:53:48 +0000
Subject: Re: protected interface methods
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-3232@lists.php.net to get a copy of this message
At 01:51 AM 4/7/2003 +0200, Andi Gutmans wrote:
At 06:03 PM 3/7/2003 +0200, Marcus Börger wrote:
Hello internals, It is of course correct that an interface method cannot be declared private but i think it should be possible to declare it protected.
Interfaces should not support access modifiers and should by default be public.
Just in case I wasn't clear, interfaces *are* meant to be a contract to the outside world and aren't supposed to be used for all sorts of internal hierarchy stuff. If they allow PPP modifiers today then that is a bug IMO. Andi

« previous php.internals (#3232) next »