Operation::wallet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
}