Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
277
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement