trait SomeTrait
{
public function someMethod() { echo 'Running trait method', PHP_EOL; }
}
class Foo
{
use SomeTrait;
}
class Child extends Foo
{
public function someMethod2() {
echo 'Running class method', PHP_EOL;
parent::someOtherMethod();
}
}
$ch = new Child;
$ch->someMethod2();