Want more features on Pastebin? Sign Up, it's FREE!
Guest

Dave

By: a guest on Nov 25th, 2010  |  syntax: PHP  |  size: 0.20 KB  |  views: 138  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. class A { }
  4. class B { }
  5.  
  6. class Test
  7. {
  8.     public function doIt(B $obj)
  9.     {
  10.         return "OK";
  11.     }
  12. }
  13.  
  14. $a = new A();
  15. $b = new B();
  16. $test = new Test();
  17. echo $test->doIt($a)."\n";
clone this paste RAW Paste Data