Passed
Push — feature/VSVGVQ-20 ( 97a728...3275f0 )
by steven
02:56
created

CompanySerializer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php declare(strict_types=1);
2
3
namespace VSV\GVQ_API\Company\Serializers;
4
5
use Symfony\Component\Serializer\Encoder\JsonEncoder;
6
use Symfony\Component\Serializer\Serializer;
7
8
class CompanySerializer extends Serializer
9
{
10
    public function __construct()
11
    {
12
        $normalizers = [
13
            new CompanyNormalizer(
14
                new TranslatedAliasNormalizer()
15
            ),
16
            new CompanyDenormalizer(
17
                new TranslatedAliasDenormalizer()
18
            ),
19
        ];
20
        $encoders = [
21
            new JsonEncoder(),
22
        ];
23
24
        parent::__construct($normalizers, $encoders);
25
    }
26
}
27