ShippingResponse   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 115
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 115
rs 10
c 0
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getDistributor() 0 3 1
A getId() 0 3 1
A getCode() 0 3 1
A getType() 0 3 1
A getDescription() 0 3 1
A setDistributor() 0 5 1
A setDescription() 0 5 1
A setCode() 0 5 1
A setType() 0 5 1
A setId() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz Rumiński <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\EwarehousingConnector\Response;
14
15
class ShippingResponse
16
{
17
    /** @var string */
18
    protected $id;
19
20
    /** @var string */
21
    protected $distributor;
22
23
    /** @var string */
24
    protected $code;
25
26
    /** @var string */
27
    protected $description;
28
29
    /** @var string */
30
    protected $type;
31
32
    /**
33
     * @return string
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * @param string $id
42
     *
43
     * @return ShippingResponse
44
     */
45
    public function setId($id)
46
    {
47
        $this->id = $id;
48
49
        return $this;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getDistributor()
56
    {
57
        return $this->distributor;
58
    }
59
60
    /**
61
     * @param string $distributor
62
     *
63
     * @return ShippingResponse
64
     */
65
    public function setDistributor($distributor)
66
    {
67
        $this->distributor = $distributor;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getCode()
76
    {
77
        return $this->code;
78
    }
79
80
    /**
81
     * @param string $code
82
     *
83
     * @return ShippingResponse
84
     */
85
    public function setCode($code)
86
    {
87
        $this->code = $code;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getDescription()
96
    {
97
        return $this->description;
98
    }
99
100
    /**
101
     * @param string $description
102
     *
103
     * @return ShippingResponse
104
     */
105
    public function setDescription($description)
106
    {
107
        $this->description = $description;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getType()
116
    {
117
        return $this->type;
118
    }
119
120
    /**
121
     * @param string $type
122
     *
123
     * @return ShippingResponse
124
     */
125
    public function setType($type)
126
    {
127
        $this->type = $type;
128
129
        return $this;
130
    }
131
}
132