unread
While porting PicoContainer to PHP 5 I noticed that we currently do not
support syntax to have an interface extend more than one parent
interface.
For instance
interface A {}
interface B {}
interface C extends A, B {}
is possible in Java while PHP 5 currently throws a syntax error, which
it does not for
interface A {}
interface B {}
interface C implements A, B {}
I have now two questions:
- Could we please add the syntax/semantic from Java so that interfaces
can extend more than one parent interface?
- Does
interface C implements A, B {}
do what I want?
Greetings,
Sebastian
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/