Passed
Pull Request — master (#3)
by Pavel
01:42
created

SerializerDenormalizer::deserialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
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