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

TransformRule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTransformer() 0 6 1
apply() 0 1 ?
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