Completed
Push — master ( 2b6952...5a589d )
by Gabriel
13s queued 11s
created

MailLog   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 8
c 2
b 0
f 0
dl 0
loc 21
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A occurredEntity() 0 3 1
A occurredProcess() 0 3 1
A recipient() 0 3 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
    {
17
        return $this->morphTo();
18
    }
19
20
    public function occurredEntity()
21
    {
22
        return $this->morphTo();
23
    }
24
25
    public function recipient()
26
    {
27
        return $this->morphTo();
28
    }
29
}
30