SDE   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 2
b 0
f 0
dl 0
loc 6
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getServerTimeAttribute() 0 2 1
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
}