Passed
Push — master ( 248c35...f550ad )
by Reyo
04:07
created

NormalizerFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the timechimp bundle package.
7
 * (c) Connect Holland.
8
 */
9
10
namespace ConnectHolland\TimechimpBundle\Api\Client\Normalizer;
11
12
@trigger_error('The "NormalizerFactory" class is deprecated since Jane 5.3, use "JaneObjectNormalizer" instead.', E_USER_DEPRECATED);
13
/**
14
 * @deprecated The "NormalizerFactory" class is deprecated since Jane 5.3, use "JaneObjectNormalizer" instead.
15
 */
16
class NormalizerFactory
17
{
18
    public static function create()
19
    {
20
        $normalizers   = [];
21
        $normalizers[] = new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer();
22
        $normalizers[] = new \ConnectHolland\TimechimpBundle\Api\Client\Normalizer\JaneObjectNormalizer();
23
24
        return $normalizers;
25
    }
26
}
27