[PHP] Re: Interfaces and Access Levels

2004-12-29 Thread Jason Barnett
Gerard Samuel wrote: I would like bar::do_something_internal() to have an access level of *private* But this would fail, as the interface can only have *public* methods. Is there a way to get bar::do_something_internal() to be private? Or am I SOL, and it has be public? Thanks interface foo {

Re: [PHP] Re: Interfaces and Access Levels

2004-12-29 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: I would like bar::do_something_internal() to have an access level of *private* But this would fail, as the interface can only have *public* methods. Is there a way to get bar::do_something_internal() to be private? Or am I SOL, and it has be public?

Re: [PHP] Re: Interfaces and Access Levels

2004-12-29 Thread Jason Barnett
[After thought] I was proof reading my reply, and the thought occured to me, that I can have the so called common code be an abstract class, that contains the neccessary methods for the *contract*. Well that thought, just blew away my reply ;) Indeed... because this is what abstract classes are