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

NormalizerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
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