Completed
Pull Request — master (#2)
by Keoghan
03:19
created

TransformRule::setTransformer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
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