Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48822 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57160 invoked from network); 17 Jun 2010 19:24:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2010 19:24:17 -0000 Authentication-Results: pb1.pair.com header.from=christian.kaps@mohiva.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=christian.kaps@mohiva.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mohiva.com designates 78.46.69.5 as permitted sender) X-PHP-List-Original-Sender: christian.kaps@mohiva.com X-Host-Fingerprint: 78.46.69.5 zucker.schokokeks.org Received: from [78.46.69.5] ([78.46.69.5:53072] helo=zucker.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/86-36621-F567A1C4 for ; Thu, 17 Jun 2010 15:24:16 -0400 Received: from [192.168.178.2] (p57B561C8.dip.t-dialin.net [::ffff:87.181.97.200]) (AUTH: PLAIN christian.kaps@mohiva.com, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by zucker.schokokeks.org with esmtp; Thu, 17 Jun 2010 21:24:13 +0200 id 0000000000018011.000000004C1A765D.00006FD2 Message-ID: <4C1A765E.5000106@mohiva.com> Date: Thu, 17 Jun 2010 21:24:14 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100610 Thunderbird/3.0.4 MIME-Version: 1.0 To: internals@lists.php.net References: <4C1A6B47.4060702@mohiva.com> <4C1A7400.6010800@sugarcrm.com> In-Reply-To: <4C1A7400.6010800@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hinting From: christian.kaps@mohiva.com (Christian Kaps) Am 17.06.2010 21:14, schrieb Stas Malyshev: > Hi! > >> I know the discussion is about scalar type hints. But what is with a >> object type hint as base for all objects? > > When it makes sense to accept any object, regardless of the class, but > not other types? I wonder if it's really a common use-case. My view layer accepts only presentation model objects. So every object with public properties can be passed to the the view.