Passed
Push — master ( 88e104...0cbceb )
by Keoghan
01:25
created

TransformRule::apply()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Konsulting\Laravel\Transformer;
4
5
abstract class TransformRule
6
{
7
    protected $transformer;
8
9
    public function setTransformer(Transformer $transformer)
10
    {
11
        $this->transformer = $transformer;
12
13
        return $this;
14
    }
15
16
    abstract public function apply($input);
17
}
18