Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37310 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48588 invoked from network); 29 Apr 2008 17:23:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2008 17:23:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:10085] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/CA-26601-27957184 for ; Tue, 29 Apr 2008 13:23:00 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 29 Apr 2008 20:23:50 +0300 Received: from [192.168.16.217] ([192.168.16.217]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 29 Apr 2008 10:23:47 -0700 Message-ID: <4817596B.8020109@zend.com> Date: Tue, 29 Apr 2008 10:22:51 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: "John Carter -X (johncart - PolicyApp Ltd at Cisco)" CC: internals@lists.php.net References: <48169695.9040803@omegavortex.net> <339714303.20080429114607@marcus-boerger.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Apr 2008 17:23:47.0552 (UTC) FILETIME=[C88D0E00:01C8AA1D] Subject: Re: [PHP-DEV] Class Properties in Interfaces? From: stas@zend.com (Stanislav Malyshev) Hi! > I understand why Interfaces can't have bodies, but could you explain why > Interfaces can't have properties? Interfaces are API descriptions. API is usually seen as composed of functions. Some go even as far as recommending even classes don't have public properties at all :) In any case, whenever you want to write $foo->bar, just write $foo->getBar() and $foo->setBar(), and it'd work :) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com