MpesaC2bCallback   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNameAttribute() 0 4 1
1
<?php
2
3
namespace Samerior\MobileMoney\Mpesa\Database\Entities;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
/**
8
 * Samerior\MobileMoney\Mpesa\Database\Entities\MpesaC2bCallback
9
 *
10
 * @property int $id
11
 * @property string $TransactionType
12
 * @property string $TransID
13
 * @property string $TransTime
14
 * @property float $TransAmount
15
 * @property int $BusinessShortCode
16
 * @property string $BillRefNumber
17
 * @property string|null $InvoiceNumber
18
 * @property string|null $ThirdPartyTransID
19
 * @property float $OrgAccountBalance
20
 * @property string $MSISDN
21
 * @property string|null $FirstName
22
 * @property string|null $MiddleName
23
 * @property string|null $LastName
24
 * @property \Carbon\Carbon|null $created_at
25
 * @property \Carbon\Carbon|null $updated_at
26
 * @property-read mixed $name
27
 * @mixin \Eloquent
28
 */
29
class MpesaC2bCallback extends Model
30
{
31
    protected $guarded = [];
32
33
    public function getNameAttribute()
34
    {
35
        return $this->FirstName . ' ' . $this->MiddleName . ' ' . $this->LastName;
36
    }
37
}
38