Transformer::transform()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
nc 1
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