<?php trait Herp { function foo() { $this->bar(); } final function bar() { var_dump('in trait'); } } class Derp { use Herp; // { bar as baz; } function bar() { var_dump('in class'); } } (new Derp())->foo();
You have javascript disabled. You will not be able to edit any code.