<?php class A { } class B { public function getA() { return new A(); } } $b = new B(); var_dump($b->getA() instanceof MyClass);
You have javascript disabled. You will not be able to edit any code.