<?php trait FooTrait { public function foo() { var_dump('qwer'); } } class Foo { use FooTrait; public function foo() { var_dump('asdf'); } } $foo = new Foo(); $foo->foo();
You have javascript disabled. You will not be able to edit any code.