Passed
Push — master ( 9db3d0...354d5b )
by Reyo
02:53
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
eloc 5
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
wmc 1

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\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