Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1.  
  2. interface A
  3. {
  4.     public function x();
  5. }
  6.  
  7. interface B
  8. {
  9.     public function y();
  10. }
  11.  
  12. interface C extends A, B
  13. {
  14.     // x() and y() should be here
  15. }
  16.  
  17. abstract class Abstract
  18. {
  19.     public function foo(A $a) {
  20.         $a->x();
  21.     }
  22. }
  23.  
  24. abstract class LessAbstract extends Abstract
  25. {
  26.     public function foo(C $c) {
  27.         $c->x();
  28.         $c->y();
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement