<?php


namespace App\Models\PaymentManagement\Traits;


use App\Models\PaymentManagement\PaymentTransaction;

trait HasPaymentTransactions{


    public function transactions(){
        return $this->morphMany(
            PaymentTransaction::class,
            PaymentTransaction::MORPH_FUNCTION_NAME,
            PaymentTransaction::MORPH_TYPE_COLUMN,
            PaymentTransaction::MORPH_ID_COLUMN
        );
    }

}
