1 | <?php |
||
2 | /** |
||
3 | * Copyright © Getnet. All rights reserved. |
||
4 | * |
||
5 | * @author Bruno Elisei <[email protected]> |
||
6 | * See LICENSE for license details. |
||
7 | */ |
||
8 | |||
9 | namespace Getnet\SubSellerMagento\Model\Seller; |
||
10 | |||
11 | use Getnet\SubSellerMagento\Helper\Data as SubSellerHelper; |
||
12 | |||
13 | /** |
||
14 | * Sub Seller Model Addresses. |
||
15 | * |
||
16 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
||
17 | */ |
||
18 | class Addresses extends \Magento\Framework\Model\AbstractExtensibleModel implements |
||
19 | \Getnet\SubSellerMagento\Api\Data\AddressesInterface |
||
20 | { |
||
21 | /**#@+ |
||
22 | * Constants defined for keys of array, makes typos less likely |
||
23 | */ |
||
24 | public const ADDRESS_STREET = 'address_street'; |
||
25 | public const ADDRESS_STREET_NUMBER = 'address_street_number'; |
||
26 | public const ADDRESS_STREET_DISTRICT = 'address_street_district'; |
||
27 | public const ADDRESS_STREET_COMPLEMENT = 'address_street_complement'; |
||
28 | public const ADDRESS_CITY = 'address_city'; |
||
29 | public const ADDRESS_REGION = 'address_region'; |
||
30 | public const ADDRESS_REGION_ID = 'address_region_id'; |
||
31 | public const ADDRESS_POSTCODE = 'address_postcode'; |
||
32 | public const ADDRESS_COUNTRY_ID = 'address_country_id'; |
||
33 | /**#@-*/ |
||
34 | |||
35 | /** |
||
36 | * @var SubSellerHelper |
||
37 | */ |
||
38 | protected $subSellerHelper; |
||
39 | |||
40 | /** |
||
41 | * @param SubSellerHelper $subSellerHelper |
||
42 | */ |
||
43 | public function __construct( |
||
44 | SubSellerHelper $subSellerHelper |
||
45 | ) { |
||
46 | $this->subSellerHelper = $subSellerHelper; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get Sub Seller business address street number. |
||
51 | * |
||
52 | * @return string; |
||
53 | */ |
||
54 | public function getAddressStreet() |
||
55 | { |
||
56 | return $this->getData(self::ADDRESS_STREET); |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Set Sub Seller business address street number. |
||
61 | * |
||
62 | * @param string $addressStreet |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setAddressStreet($addressStreet) |
||
67 | { |
||
68 | return $this->setData(self::ADDRESS_STREET, $addressStreet); |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Get Sub Seller business address street number. |
||
73 | * |
||
74 | * @return string; |
||
75 | */ |
||
76 | public function getAddressStreetNumber() |
||
77 | { |
||
78 | return $this->getData(self::ADDRESS_STREET_NUMBER); |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * Set Sub Seller business address street number. |
||
83 | * |
||
84 | * @param string $addressStreetNumber |
||
85 | * |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function setAddressStreetNumber($addressStreetNumber) |
||
89 | { |
||
90 | return $this->setData(self::ADDRESS_STREET_NUMBER, $addressStreetNumber); |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * Get Sub Seller business address street district. |
||
95 | * |
||
96 | * @return string; |
||
97 | */ |
||
98 | public function getAddressStreetDistrict() |
||
99 | { |
||
100 | return $this->getData(self::ADDRESS_STREET_DISTRICT); |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * Set Sub Seller business address street district. |
||
105 | * |
||
106 | * @param string $addressStreetDistrict |
||
107 | * |
||
108 | * @return $this |
||
109 | */ |
||
110 | public function setAddressStreetDistrict($addressStreetDistrict) |
||
111 | { |
||
112 | return $this->setData(self::ADDRESS_STREET_DISTRICT, $addressStreetDistrict); |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * Get Sub Seller business address street district. |
||
117 | * |
||
118 | * @return string; |
||
119 | */ |
||
120 | public function getAddressStreetComplement() |
||
121 | { |
||
122 | return $this->getData(self::ADDRESS_STREET_COMPLEMENT); |
||
123 | } |
||
124 | |||
125 | /** |
||
126 | * Set Sub Seller business address street district. |
||
127 | * |
||
128 | * @param string $addressStreetComplement |
||
129 | * |
||
130 | * @return $this |
||
131 | */ |
||
132 | public function setAddressStreetComplement($addressStreetComplement) |
||
133 | { |
||
134 | return $this->setData(self::ADDRESS_STREET_COMPLEMENT, $addressStreetComplement); |
||
135 | } |
||
136 | |||
137 | /** |
||
138 | * Get Sub Seller var. |
||
139 | * |
||
140 | * @return string; |
||
141 | */ |
||
142 | public function getAddressCity() |
||
143 | { |
||
144 | return $this->getData(self::ADDRESS_CITY); |
||
145 | } |
||
146 | |||
147 | /** |
||
148 | * Set Sub Seller business address city. |
||
149 | * |
||
150 | * @param string $addressCity |
||
151 | * |
||
152 | * @return $this |
||
153 | */ |
||
154 | public function setAddressCity($addressCity) |
||
155 | { |
||
156 | return $this->setData(self::ADDRESS_CITY, $addressCity); |
||
157 | } |
||
158 | |||
159 | /** |
||
160 | * Get Sub Seller business address region. |
||
161 | * |
||
162 | * @return string; |
||
163 | */ |
||
164 | public function getAddressRegion() |
||
165 | { |
||
166 | return $this->getData(self::ADDRESS_REGION); |
||
167 | } |
||
168 | |||
169 | /** |
||
170 | * Set Sub Seller business address region. |
||
171 | * |
||
172 | * @param string $addressRegion |
||
173 | * |
||
174 | * @return $this |
||
175 | */ |
||
176 | public function setAddressRegion($addressRegion) |
||
177 | { |
||
178 | return $this->setData(self::ADDRESS_REGION, $addressRegion); |
||
179 | } |
||
180 | |||
181 | /** |
||
182 | * Set Geb Seller business address region id. |
||
183 | * |
||
184 | * @return int |
||
185 | */ |
||
186 | public function getAddressRegionId() |
||
187 | { |
||
188 | return $this->getData(self::ADDRESS_REGION_ID); |
||
189 | } |
||
190 | |||
191 | /** |
||
192 | * Set Sub Seller business address region id. |
||
193 | * |
||
194 | * @param string $addressRegionId |
||
195 | * |
||
196 | * @return $this |
||
197 | */ |
||
198 | public function setAddressRegionId($addressRegionId) |
||
199 | { |
||
200 | return $this->setData(self::ADDRESS_REGION_ID, $addressRegionId); |
||
201 | } |
||
202 | |||
203 | /** |
||
204 | * Set Sub Seller business address postcode. |
||
205 | * |
||
206 | * @param string $addressPostcode |
||
207 | * |
||
208 | * @return $this |
||
209 | */ |
||
210 | public function setAddressPostcode($addressPostcode) |
||
211 | { |
||
212 | return $this->setData(self::ADDRESS_POSTCODE, $addressPostcode); |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * Get Sub Seller business address postcode. |
||
217 | * |
||
218 | * @return string; |
||
219 | */ |
||
220 | public function getAddressPostcode() |
||
221 | { |
||
222 | return $this->getData(self::ADDRESS_POSTCODE); |
||
223 | } |
||
224 | |||
225 | /** |
||
226 | * Get Sub Seller business address country id. |
||
227 | * |
||
228 | * @return string; |
||
229 | */ |
||
230 | public function getAddressCountryId() |
||
231 | { |
||
232 | return $this->getData(self::ADDRESS_COUNTRY_ID); |
||
233 | } |
||
234 | |||
235 | /** |
||
236 | * Set Sub Seller business address country id. |
||
237 | * |
||
238 | * @param string $addressCountryId |
||
239 | * |
||
240 | * @return $this |
||
241 | */ |
||
242 | public function setAddressCountryId($addressCountryId) |
||
243 | { |
||
244 | return $this->setData(self::ADDRESS_COUNTRY_ID, $addressCountryId); |
||
245 | } |
||
246 | |||
247 | /** |
||
248 | * @inheritdoc |
||
249 | * |
||
250 | * @return \Getnet\SubSellerMagento\Api\Data\AddressesExtensionInterface|null |
||
0 ignored issues
–
show
|
|||
251 | */ |
||
252 | public function getExtensionAttributes() |
||
253 | { |
||
254 | return $this->_getExtensionAttributes(); |
||
0 ignored issues
–
show
|
|||
255 | } |
||
256 | |||
257 | /** |
||
258 | * @inheritdoc |
||
259 | * |
||
260 | * @param \Getnet\SubSellerMagento\Api\Data\AddressesExtensionInterface $extensionAttributes |
||
261 | * |
||
262 | * @return $this |
||
263 | */ |
||
264 | public function setExtensionAttributes( |
||
265 | \Getnet\SubSellerMagento\Api\Data\AddressesExtensionInterface $extensionAttributes |
||
266 | ) { |
||
267 | return $this->_setExtensionAttributes($extensionAttributes); |
||
268 | } |
||
269 | } |
||
270 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths