Operation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A wallet() 0 4 1
1
<?php
2
3
namespace App\Payment;
4
5
use App\Wallet;
6
use Keyhunter\Administrator\Repository;
7
8
class Operation extends Repository
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $table = 'payments_operations';
14
15
    /**
16
     * @var array
17
     */
18
    protected $fillable = ['transaction_id', 'transaction_type', 'wallet_id', 'amount', 'type'];
19
20
    /**
21
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
22
     */
23
    public function wallet()
24
    {
25
        return $this->belongsTo(Wallet::class);
26
    }
27
}