<?php interface UserInterface { function getName(); } class UserClass implements UserInterface { }; function foo (MyInterface $I) { } $i = new MyClass; foo($i);
Standard input is empty
Standard output is empty
PHP Fatal error: Class UserClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (UserInterface::getName) in /home/nShwKN/prog.php on line 7