Passed
Push — master ( 9db3d0...354d5b )
by Reyo
02:53
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
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 6
cp 0
crap 2
rs 10
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\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\Normalizer\JaneObjectNormalizer();
23
24
        return $normalizers;
25
    }
26
}
27