<?php class MyClass {} interface TestCon { public function testCon(MyClass $object): object; } class TestConImplementation implements TestCon { public function testCon(object $object): object { return $object; } } $test = new TestConImplementation; $object = $test->testCon(new MyClass); var_dump($object);
You have javascript disabled. You will not be able to edit any code.