interface TestInterface
{
public function test(int $arg): int;
}
class Tester1 impliments TestInterface
{
public function test(int $arg, $arg2 = 1): int
{
//...
}
}
class Tester2 impliments TestInterface
{
public function test($arg, $arg1 = [], $arg2 = true): int
{
//...
}
}
Interface TestInterface
{
public function test(...$args): int
}