Transformer::transformCollection()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: adam
5
 * Date: 20/04/16
6
 * Time: 16:49.
7
 */
8
9
namespace App\Transformers;
10
11
abstract class Transformer
12
{
13
    public function transformCollection(array $items)
14
    {
15
        return array_map([$this, 'transform'], $items);
16
    }
17
18
    abstract public function transform($item);
19
}
20