<?php
interface MyInterface{ public function execute(SomeInterface $arg1, SomeInterface2 $arg2);
}
trait MyTrait{
public function execute(SomeInterface3 $arg) { }}class MyClass implements MyInterface { use MyTrait { execute as protected commanderExecute; } public function execute(SomeInterface $arg1, SomeInterface2 $arg2) { // do something }}echo('It works!');