Transfer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTimeAttribute() 0 3 1
1
<?php
2
/**
3
 * Transfer
4
 *
5
 * @package LivePersonInc\LiveEngageLaravel\Models
6
 */
7
8
namespace LivePersonInc\LiveEngageLaravel\Models;
9
10
use Carbon\Carbon;
11
use Illuminate\Database\Eloquent\Model;
12
13
class Transfer extends Model
14
{
15
	protected $guarded = [];
16
    
17
    public function getTimeAttribute()
18
    {
19
        return new Carbon(intval($this->timeL/1000));
0 ignored issues
show
Bug introduced by
The property timeL does not seem to exist on LivePersonInc\LiveEngageLaravel\Models\Transfer. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
20
    }
21
}
22