BaseTransformer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
cbo 0
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setSerializer() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the XabbuhPandaClient package.
5
 *
6
 * (c) Christian Flothmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Xabbuh\PandaClient\Transformer;
13
14
use Xabbuh\PandaClient\Serializer\SerializerInterface;
15
16
/**
17
 * Common functions for all transformer classes.
18
 *
19
 * @author Christian Flothmann <[email protected]>
20
 */
21
abstract class BaseTransformer
22
{
23
    /**
24
     * @var SerializerInterface
25
     */
26
    protected $serializer;
27
28
    /**
29
     * {@inheritDoc}
30
     */
31 15
    public function setSerializer(SerializerInterface $serializer)
32
    {
33 15
        $this->serializer = $serializer;
34 15
    }
35
}
36