Completed
Push — feature/VSVGVQ-24 ( 890c4d...a3069c )
by Luc
05:52 queued 02:46
created

UserSerializer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

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