Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. class A {
  2.     public function __construct(AA $aa) {}
  3. }
  4.  
  5. class B extends A {
  6.     public function __construct(AB $ab) {}
  7. }
  8.  
  9. class AA {}
  10. class AB extends AA {}
  11.  
  12. $a = new B(new AB());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement