Transfer::getTimeAttribute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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