<?php
interface ContractA
{
public function doSomething();
}
interface ContractB
{
public function doSomething();
}
class Implementor implements ContractA, ContractB
{
public function doSomething()
{
echo "foo\n";
}
}
$implementor = new Implementor();
$implementor->doSomething();