Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- interface a
- {
- public funcation foo();
- }
- interface b extends a
- {
- public funcation baz(baz $baz)
- }
- //This will work
- class c implements b
- {
- public funcation foo()
- {
- }
- public funcation baz(baz $baz)
- {
- }
- }
- //This will not work and result in a fatal e
- class d implements b
- {
- public funcation foo()
- {
- }
- public funcation baz(Foo $foo)
- {
- }
- }
- interface a
- {
- public funcation foo();
- }
- interface b
- {
- public funcation bar();
- }
- interface c extends a, b
- {
- public funcationbaz();
- }
- class d implements c
- {
- public funcation foo()
- {
- }
- public funcation bar()
- {
- }
- public funcation baz()
- {
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement