SHARE
TWEET

Dave

a guest Nov 25th, 2010 169 Never
  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";
RAW Paste Data
Top