SDE::getServerTimeAttribute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * SDE
4
 *
5
 * @package LivePersonInc\LiveEngageLaravel\Models
6
 */
7
8
namespace LivePersonInc\LiveEngageLaravel\Models;
9
10
use Illuminate\Database\Eloquent\Model;
11
use Carbon\Carbon;
12
13
/**
14
 * SDE class.
15
 * 
16
 * @extends Model
17
 */
18
class SDE extends Model
19
{
20
	protected $guarded = [];
21
	
22
	public function getServerTimeAttribute() {
23
		return Carbon::createFromTimestampMs($this->attributes['serverTimeStamp']);
24
	}
25
}