Passed
Branch master (ac8b07)
by Robert
03:36
created

ConsumerParticipants   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace LivePersonInc\LiveEngageLaravel\Collections;
4
5
use Illuminate\Support\Collection;
6
use LivePersonInc\LiveEngageLaravel\Models\Visitor;
7
8
class ConsumerParticipants extends Collection
9
{
10
	public function __construct(array $models = [])
11
	{
12
		
13
		$models = array_map(function($item) {
14
			return new Visitor((array) $item);
15
		}, $models);
16
		
17
		parent::__construct($models);
18
	}
19
}
20