AbstractFormatHandler::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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