<?php trait EndpointInjector { public function test($str) { echo $str; } } class Endpoint { use EndpointInjector; public function test($str) { echo $str . '2'; } } $ep = new Endpoint(); $ep->test('hello world');
You have javascript disabled. You will not be able to edit any code.