在lumen中,如何在trait中调用另一个trait的函数

In lumen,How to call another trait's function in trait

我的流明应用程序 CommonTrait 和 PaymentTrait 中有两个特征。 Helpers/CommonTrait 有以下方法:

1.sendMail 2.calculateAmount

Helpers/PaymentTrait 方法如下 1.加法器 2. 添加翻译。 3. GenerateContForMail

我想在 paymentTrait 的 GenerateContForMail 方法中使用 sendmail 方法。 流明给我以下错误:

Fatal error: Trait method sendEmailNotification has not been applied, because there are collisions with other trait methods on App\Http\Controllers\Api\V1\PaymentController in D:\xampp7.1.9\htdocs\bloxin-app-api\app\Http\Controllers\Api\V1\PaymentController.php on line 28

请帮助解决问题。我是流明的新手

http://php.net/manual/en/language.oop5.traits.php

使用这样的东西:

class PaymentController extends Controller {
use A, B {
    PaymentTrait::sendEmailNotification insteadof AnotherTrait;
   }
}