Completed
Pull Request — master (#3)
by Pavel
01:45
created

SerializerDenormalizer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A denormalize() 0 4 1
A supportsDenormalization() 0 4 1
A serialize() 0 4 1
A deserialize() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace Lamoda\IsmpClient\Tests\Stub;
7
8
9
use Symfony\Component\Serializer\SerializerInterface;
10
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
11
12
/**
13
 * Stub for test
14
 */
15
class SerializerDenormalizer implements DenormalizerInterface, SerializerInterface
16
{
17
    /**
18
     * @inheritDoc
19
     */
20
    public function denormalize($data, $type, $format = null, array $context = [])
21
    {
22
        return [];
23
    }
24
25
    /**
26
     * @inheritDoc
27
     */
28
    public function supportsDenormalization($data, $type, $format = null)
29
    {
30
        return false;
31
    }
32
33
    public function serialize($data, $format, array $context = [])
34
    {
35
        return '';
36
    }
37
38
    public function deserialize($data, $type, $format, array $context = [])
39
    {
40
        return [];
41
    }
42
}
43