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