Completed
Push — master ( 00c305...784882 )
by Nate
03:32
created

DeserializationContext::getDepth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * Copyright (c) Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
 
7
namespace Tebru\Retrofit\Annotation\Serializer;
8
9
/**
10
 * DeserializationContext
11
 *
12
 * Define a context when deserializing an object from a response.
13
 *
14
 * @author Matthew Loberg <[email protected]>
15
 * @author Nate Brunette <[email protected]>
16
 *
17
 * @Annotation
18
 * @Target({"CLASS", "METHOD"})
19
 */
20
class DeserializationContext extends DeserializerContext
21
{
22
    /**
23
     * Constructor
24
     *
25
     * @param array $params
26
     */
27
    public function __construct(array $params)
28
    {
29
        parent::__construct(['value' => $params]);
30
31
        trigger_error(
32
            'Retrofit Deprecation: @DeserializationContext is deprecated and will be removed in v3.  Use @DeserializerContext instead.',
33
            E_USER_DEPRECATED
34
        );
35
    }
36
}
37