Passed
Pull Request — master (#7)
by
unknown
05:06
created

MailLog   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 14
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A occurredEntity() 0 2 1
A occurredProcess() 0 2 1
1
<?php
2
3
namespace Giuga\LaravelMailLog\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class MailLog extends Model
8
{
9
    protected $table = 'mail_log';
10
    protected $guarded = [];
11
    protected $casts = [
12
        'data' => 'array',
13
    ];
14
15
    public function occurredProcess() {
16
        return $this->morphTo();
17
    }
18
19
    public function occurredEntity() {
20
        return $this->morphTo();
21
    }
22
23
}
24