Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56420 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79469 invoked from network); 19 Nov 2011 02:15:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2011 02:15:50 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:44973] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/51-00892-65117CE4 for ; Fri, 18 Nov 2011 21:15:50 -0500 Received: by ywm19 with SMTP id 19so3588656ywm.29 for ; Fri, 18 Nov 2011 18:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=wGN8OvhLKI34aUd+FdNbLS0hKzCdbIr0g6W9kc/S6+o=; b=p7girGV72GQSNcN9Af8JuFwzqSJRcGiVHCqxukS6YHz4mW1DXgJY+CtMlsUrgtGujd psH0DH3JS2VAefLDpb45EDmzweZCAGcW4Dm/cDPI8yQbB791pCNWXnPH3/p7XzZUbW3z kHFuBvCtiIA/+V+UDaZYcsSLClOLlahnYajOw= MIME-Version: 1.0 Received: by 10.101.41.12 with SMTP id t12mr1414411anj.19.1321668947439; Fri, 18 Nov 2011 18:15:47 -0800 (PST) Received: by 10.146.65.38 with HTTP; Fri, 18 Nov 2011 18:15:46 -0800 (PST) In-Reply-To: <9570D903A3BECE4092E924C2985CE48539811627@MBX206.domain.local> References: <9570D903A3BECE4092E924C2985CE48539811627@MBX206.domain.local> Date: Sat, 19 Nov 2011 03:15:46 +0100 Message-ID: To: Clint M Priest Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Multiple Visibility Level Getters/Setters From: hannes.magnusson@gmail.com (Hannes Magnusson) On Sat, Nov 19, 2011 at 02:46, Clint M Priest wrote: > What would everyone think about multiple levels of visibility for getters= /setters? > > class Sample { > > public $Variable { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0public get { retur= n "Public"; } > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0protected get { re= turn "Protected"; } > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0private get { retu= rn "Private"; } > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0public set { ... } > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0private set { ... = } > } > } No please. That will create a major WTF factor. -Hannes