Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37311 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50037 invoked from network); 29 Apr 2008 17:27:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2008 17:27:10 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; 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:10838] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/0B-26601-C6A57184 for ; Tue, 29 Apr 2008 13:27:10 -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:28:00 +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:27:57 -0700 Message-ID: <48175A65.4070301@zend.com> Date: Tue, 29 Apr 2008 10:27:01 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Jeff Moore CC: internals@lists.php.net References: <48169695.9040803@omegavortex.net> <339714303.20080429114607@marcus-boerger.de> <27A086AB-E111-49C1-ABBD-28FB6E1677BD@procata.com> In-Reply-To: <27A086AB-E111-49C1-ABBD-28FB6E1677BD@procata.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Apr 2008 17:27:57.0310 (UTC) FILETIME=[5D6B19E0:01C8AA1E] Subject: Re: [PHP-DEV] Class Properties in Interfaces? From: stas@zend.com (Stanislav Malyshev) Hi! > But, when you add the possibility of getters and setters, a property > becomes an abstraction. It would make sense that an interface declares Nothing prevents you from having getters and setters as part of the interface :) > Properties in interfaces make no sense now, but if we ever get a > structural method of declaring getters and setters, they might make sense. You can easily have it right now: function __get($name) { $name = "__get".ucfirst($name); return $this->$name(); } etc. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com