Completed
Push — master ( c6f1db...6c1249 )
by Quim González
05:48
created

TaskEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 8 1
1
<?php
2
3
namespace App;
4
5
6
use Illuminate\Database\Eloquent\Model;
7
8
class TaskEvent extends model
9
{
10
    protected $guarded = [];
11
12
    public function toArray()
13
    {
14
        return [
15
            'id'          => $this->id,
16
            'time'        => $this->time,
17
            'type'        => $this->type,
18
            'task_name'        => $this->task_name,
19
            'user_name'        => $this->user_name,
20
        ];
21
    }
22
}