Issues (453)

src/SoapTypes/PickupRequestOptionsRequest.php (1 issue)

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\PaazlConnector\SoapTypes;
14
15
use Phpro\SoapClient\Type\RequestInterface;
16
17 View Code Duplication
class PickupRequestOptionsRequest implements RequestInterface
0 ignored issues
show
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $hash = null;
23
24
    /**
25
     * @var int
26
     */
27
    protected $webshop = null;
28
29
    /**
30
     * @var int
31
     */
32
    protected $targetWebshop = null;
33
34
    /**
35
     * @var string
36
     */
37
    protected $internalReference = null;
38
39
    /**
40
     * @var string
41
     */
42
    protected $pickupCountry = null;
43
44
    /**
45
     * @var string
46
     */
47
    protected $deliveryCountry = null;
48
49
    /**
50
     * Constructor.
51
     *
52
     * @var string
53
     * @var int    $webshop
54
     * @var int    $targetWebshop
55
     * @var string $internalReference
56
     * @var string $pickupCountry
57
     * @var string $deliveryCountry
58
     *
59
     * @param mixed $hash
60
     * @param mixed $webshop
61
     * @param mixed $targetWebshop
62
     * @param mixed $internalReference
63
     * @param mixed $pickupCountry
64
     * @param mixed $deliveryCountry
65
     */
66
    public function __construct($hash, $webshop, $targetWebshop, $internalReference, $pickupCountry, $deliveryCountry)
67
    {
68
        $this->hash = $hash;
69
        $this->webshop = $webshop;
70
        $this->targetWebshop = $targetWebshop;
71
        $this->internalReference = $internalReference;
72
        $this->pickupCountry = $pickupCountry;
73
        $this->deliveryCountry = $deliveryCountry;
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function getHash()
80
    {
81
        return $this->hash;
82
    }
83
84
    /**
85
     * @param string $hash
86
     *
87
     * @return $this
88
     */
89
    public function setHash($hash)
90
    {
91
        $this->hash = $hash;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @return int
98
     */
99
    public function getWebshop()
100
    {
101
        return $this->webshop;
102
    }
103
104
    /**
105
     * @param int $webshop
106
     *
107
     * @return $this
108
     */
109
    public function setWebshop($webshop)
110
    {
111
        $this->webshop = $webshop;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @return int
118
     */
119
    public function getTargetWebshop()
120
    {
121
        return $this->targetWebshop;
122
    }
123
124
    /**
125
     * @param int $targetWebshop
126
     *
127
     * @return $this
128
     */
129
    public function setTargetWebshop($targetWebshop)
130
    {
131
        $this->targetWebshop = $targetWebshop;
132
133
        return $this;
134
    }
135
136
    /**
137
     * @return string
138
     */
139
    public function getInternalReference()
140
    {
141
        return $this->internalReference;
142
    }
143
144
    /**
145
     * @param string $internalReference
146
     *
147
     * @return $this
148
     */
149
    public function setInternalReference($internalReference)
150
    {
151
        $this->internalReference = $internalReference;
152
153
        return $this;
154
    }
155
156
    /**
157
     * @return string
158
     */
159
    public function getPickupCountry()
160
    {
161
        return $this->pickupCountry;
162
    }
163
164
    /**
165
     * @param string $pickupCountry
166
     *
167
     * @return $this
168
     */
169
    public function setPickupCountry($pickupCountry)
170
    {
171
        $this->pickupCountry = $pickupCountry;
172
173
        return $this;
174
    }
175
176
    /**
177
     * @return string
178
     */
179
    public function getDeliveryCountry()
180
    {
181
        return $this->deliveryCountry;
182
    }
183
184
    /**
185
     * @param string $deliveryCountry
186
     *
187
     * @return $this
188
     */
189
    public function setDeliveryCountry($deliveryCountry)
190
    {
191
        $this->deliveryCountry = $deliveryCountry;
192
193
        return $this;
194
    }
195
}
196