Passed
Push — master ( b19e1a...9e97df )
by Robert
03:55
created

Transfers   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 10
ccs 4
cts 4
cp 1
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\Transfer;
7
8
class Transfers extends Collection
9
{
10 1
	public function __construct(array $models = [])
11
	{
12
		
13
		$models = array_map(function($item) {
14 1
			return new Transfer((array) $item);
15 1
		}, $models);
16
		
17 1
		parent::__construct($models);
18
	}
19
}