Passed
Push — master ( 00795d...64ec34 )
by Robert
08:15
created

AccountStatus   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
namespace LivePersonInc\LiveEngageLaravel\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class AccountStatus extends Model
8
{
9
	protected $guarded = [];
10
	
11 1
	public function __construct(array $array)
12
	{
13 1
		$output = [];
14 1
		foreach ($array as $key=>$value) {
15 1
			$output[snake_case($key)] = $value;
16
		}
17 1
		parent::__construct($output);
18 1
	}
19
}
20