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

TaskEvent::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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