AbstractFormatHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Majora\Framework\Serializer\Handler;
4
5
use Majora\Framework\Normalizer\MajoraNormalizer;
6
use Majora\Framework\Serializer\Handler\FormatHandlerInterface;
7
8
/**
9
 * Base implementation of format handler using normalizer
10
 */
11
abstract class AbstractFormatHandler implements FormatHandlerInterface
12
{
13
    /**
14
     * @var MajoraNormalizer
15
     */
16
    protected $normalizer;
17
18
    /**
19
     * Construct
20
     *
21
     * @param MajoraNormalizer $normalizer
22
     */
23 26
    public function __construct(MajoraNormalizer $normalizer)
24
    {
25 26
        $this->normalizer = $normalizer;
26 26
    }
27
}
28