GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

WalletLedger   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 20
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A wallet() 0 4 1
A transaction() 0 4 1
1
<?php
2
3
namespace CoreProc\WalletPlus\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class WalletLedger extends Model
8
{
9
    protected $fillable = [
10
        'wallet_id',
11
        'transaction_id',
12
        'transaction_type',
13
        'amount',
14
        'running_raw_balance',
15
    ];
16
17
    public function wallet()
18
    {
19
        return $this->belongsTo(Wallet::class);
20
    }
21
22
    public function transaction()
23
    {
24
        return $this->morphTo('transaction');
25
    }
26
}
27