AccountStatus   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

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