<?php class Bar { } class Foo { public function getBar(): Bar { return 10; } } $foo = new Foo(); var_dump($foo->getBar());
You have javascript disabled. You will not be able to edit any code.