Passed
Push — master ( a27375...9a69e0 )
by Robert
08:39
created

SDE   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

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
}