<?php trait mytrait { public function foo() { return get_class($this); } } class myclass { use mytrait; } var_dump((new myclass)->foo());
You have javascript disabled. You will not be able to edit any code.