<?php
trait impl
{
public function dothis()
{
echo 'trait';
}
}
abstract class Abs implements Iface
{
abstract function dothis();
}
class Foo extends Abs
{
use impl;
public function dothis()
{
echo 'class';
}
}
interface Iface
{
public function dothis();
}
(new Foo)->dothis();