2009年6月4日星期四

Re: [fw-mvc] get and set accessors

Don't interfaces just provide a list of methods/properties that need
to be defined in any class that implements them? It seems like this
is where you would use the ability to create a class that both extends
another class and implements an interface.

On Thu, Jun 4, 2009 at 9:08 AM, Hector Virgen<djvirgen@gmail.com> wrote:
> In terms of using interfaces, how should __get and __set be used? Should the
> interface require an implementation of the just the magic methods, or just
> the actual get* and set* methods, or both? Or should the magic methods be
> avoided when using interfaces in order to ensure a common interface?
> -Hector
>

没有评论: