<?php trait Foo { private function overload() { var_dump(__METHOD__); } } class Bar { use Foo { Foo::overload as test; } } $bar = new Bar(); $bar->test();
You have javascript disabled. You will not be able to edit any code.