Transformer::transform()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 1
nc 1
1
<?php
2
3
namespace App\Acme\Transformers;
4
5
abstract class Transformer
6
{
7
    public function transformCollection(array $items)
8
    {
9
        return array_map([$this, 'transform'], $items);
10
    }
11
12
    public abstract function transform($item);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
13
}