Re: Property Accessors v1.2 : Interfaces

From: Date: Tue, 16 Oct 2012 04:20:47 +0000
Subject: Re: Property Accessors v1.2 : Interfaces
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-63430@lists.php.net to get a copy of this message
On 16/10/12 14:55, Jazzer Dane wrote:
I'm going to agree with David here. It is most sensible to either allow properties AND accessors in interfaces, or don't allow either of them. __get/__set is a different subject that I'd rather not dig into while discussing this RFC.
I tossed in the __get/__set because they satisfy the interface. The problem with them it is that they would satisfy the interface at runtime rather than compile time, and thus would be unsafe to use. Kind of defeats the point of an interface... ;-) Cheers, David

« previous php.internals (#63430) next »