Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class A { }
- class B { }
- class Test
- {
- public function doIt(B $obj)
- {
- return "OK";
- }
- }
- $a = new A();
- $b = new B();
- $test = new Test();
- echo $test->doIt($a)."\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement