<?php class Foo {} interface Bar { public function test(Foo $foo); } class Baz implements Bar { public function test($foo) { var_dump($foo); } } $f = new Foo(); $z = new Baz(); $z->test($f); $z->test(true);
You have javascript disabled. You will not be able to edit any code.