Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21363 invoked by uid 1010); 5 Aug 2004 17:50:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21261 invoked from network); 5 Aug 2004 17:50:58 -0000 Received: from unknown (HELO theta.altoona-pa.com) (209.161.72.28) by pb1.pair.com with SMTP; 5 Aug 2004 17:50:58 -0000 Received: from IONZOFT-JEG (dpvc-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id 90C0416423 for ; Thu, 5 Aug 2004 13:50:57 -0400 (EDT) Date: Thu, 5 Aug 2004 13:51:01 -0400 X-Mailer: The Bat! (v2.11.02) Business Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <1729238833.20040805135101@ionzoft.com> To: internals@lists.php.net In-Reply-To: <1447642463.20040805193205@marcus-boerger.de> References: <411267F6.29103.185A825@localhost> <1447642463.20040805193205@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Protected methods in interfaces From: jason@ionzoft.com (Jason Garber) Hello Marcus, Can abstract methods be protected? -- Best regards, Jason mailto:jason@ionzoft.com Thursday, August 5, 2004, 1:32:05 PM, you wrote: MB> Hello Ferdinand, MB> Thursday, August 5, 2004, 5:01:42 PM, you wrote: >> Trying to write a singleton interface: >> interface Singleton { >> // Disallow public construction >> protected function __construct(); >> public static function getInstance(); >> } >> I got an error saying I was not allowed to declare the constructor >> protected - I should either use public or omit it. >> Why can't I instruct Singleton-classes to use protected constructors? >> Is this expected behavior or may I file a bug report? MB> All interface methods must be public - that's the point behind interfaces. MB> regards MB> marcus