1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Magium\Magento\Themes\OnePageCheckout; |
4
|
|
|
|
5
|
|
|
|
6
|
|
|
use Magium\AbstractConfigurableElement; |
7
|
|
|
use Magium\Themes\ThemeConfigurationInterface; |
8
|
|
|
|
9
|
|
|
abstract class AbstractThemeConfiguration extends AbstractConfigurableElement implements ThemeConfigurationInterface // ThemeConfigurationInterface is here simply for compatibility for extractors |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @var string The continue button when choosing the checkout type |
14
|
|
|
*/ |
15
|
|
|
|
16
|
|
|
public $continueButtonXpath; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string The checkbox (typically) that sets the guest checkout |
20
|
|
|
*/ |
21
|
|
|
|
22
|
|
|
public $guestCheckoutButtonXpath; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string The checkbox (typically) that sets the new customer checkout |
26
|
|
|
*/ |
27
|
|
|
|
28
|
|
|
public $registerNewCustomerCheckoutButtonXpath; |
29
|
|
|
|
30
|
|
|
public $billingAddressDropdownXpath; |
31
|
|
|
|
32
|
|
|
public $customerEmailInputXpath; |
33
|
|
|
public $customerPasswordInputXpath; |
34
|
|
|
public $customerButtonXpath; |
35
|
|
|
|
36
|
|
|
public $billingFirstNameXpath; |
37
|
|
|
public $billingLastNameXpath; |
38
|
|
|
public $billingCompanyXpath; |
39
|
|
|
public $billingEmailAddressXpath; |
40
|
|
|
public $billingAddressXpath; |
41
|
|
|
public $billingAddress2Xpath; |
42
|
|
|
public $billingCityXpath; |
43
|
|
|
/** |
44
|
|
|
* @var string The Xpath string for the region_id OPTION to click. Must be sprintf() compatible |
45
|
|
|
*/ |
46
|
|
|
public $billingRegionIdXpath; |
47
|
|
|
public $billingPostCodeXpath; |
48
|
|
|
/** |
49
|
|
|
* @var string The Xpath string for the country OPTION to click. Must be sprintf() compatible |
50
|
|
|
*/ |
51
|
|
|
public $billingCountryIdXpath; |
52
|
|
|
public $billingTelephoneXpath; |
53
|
|
|
public $billingFaxXpath; |
54
|
|
|
|
55
|
|
|
public $useBillingAddressForShipping; |
56
|
|
|
public $doNotUseBillingAddressForShipping; |
57
|
|
|
|
58
|
|
|
public $billingContinueButtonXpath; |
59
|
|
|
public $billingContinueCompletedXpath; |
60
|
|
|
|
61
|
|
|
|
62
|
|
|
public $shippingFirstNameXpath; |
63
|
|
|
public $shippingLastNameXpath; |
64
|
|
|
public $shippingCompanyXpath; |
65
|
|
|
public $shippingEmailAddressXpath; |
66
|
|
|
public $shippingAddressXpath; |
67
|
|
|
public $shippingAddress2Xpath; |
68
|
|
|
public $shippingCityXpath; |
69
|
|
|
/** |
70
|
|
|
* @var string The Xpath string for the region_id OPTION to click. Must be sprintf() compatible |
71
|
|
|
*/ |
72
|
|
|
public $shippingRegionIdXpath; |
73
|
|
|
public $shippingPostCodeXpath; |
74
|
|
|
/** |
75
|
|
|
* @var string The Xpath string for the country OPTION to click. Must be sprintf() compatible |
76
|
|
|
*/ |
77
|
|
|
public $shippingCountryIdXpath; |
78
|
|
|
public $shippingTelephoneXpath; |
79
|
|
|
public $shippingFaxXpath; |
80
|
|
|
public $shippingContinueButtonXpath; |
81
|
|
|
public $shippingContinueCompletedXpath; |
82
|
|
|
public $shippingMethodContinueCompletedXpath; |
83
|
|
|
|
84
|
|
|
public $shippingMethodContinueButtonXpath; |
85
|
|
|
public $defaultShippingXpath; |
86
|
|
|
|
87
|
|
|
public $paymentMethodContinueCompleteXpath; |
88
|
|
|
|
89
|
|
|
public $paymentMethodContinueButtonXpath; |
90
|
|
|
|
91
|
|
|
public $placeOrderButtonXpath; |
92
|
|
|
|
93
|
|
|
public $orderReceivedCompleteXpath; |
94
|
|
|
|
95
|
|
|
public $shippingMethodFormXpath; |
96
|
|
|
|
97
|
|
|
public $passwordInputXpath; |
98
|
|
|
public $confirmPasswordInputXpath; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* This is a hard one. Each of the summary checkout products will be iterated over until they cannot be found. Having |
102
|
|
|
* this work in a manner that gets all of the products, in all languages, in all themes, is quite difficult and |
103
|
|
|
* so the Xpath selector needs to be one that can find each individual column with an incrementing iterator. |
104
|
|
|
* |
105
|
|
|
* @see Magium\Magento\Actions\Checkout\Extractors\CartSummary for an example on how this is done |
106
|
|
|
* |
107
|
|
|
* @var string |
108
|
|
|
*/ |
109
|
|
|
|
110
|
|
|
public $cartSummaryCheckoutProductLoopPriceXpath; |
111
|
|
|
public $cartSummaryCheckoutProductLoopNameXpath; |
112
|
|
|
public $cartSummaryCheckoutProductLoopQtyXpath; |
113
|
|
|
public $cartSummaryCheckoutProductLoopSubtotalXpath; |
114
|
|
|
|
115
|
|
|
public $cartSummaryCheckoutSubTotal; |
116
|
|
|
public $cartSummaryCheckoutTax; |
117
|
|
|
public $cartSummaryCheckoutGrandTotal; |
118
|
|
|
public $cartSummaryCheckoutShippingTotal; |
119
|
|
|
|
120
|
|
|
public $billingNewAddressXpath; |
121
|
|
|
public $shippingNewAddressXpath; |
122
|
|
|
|
123
|
|
|
public $guaranteedPageLoadedElementDisplayedXpath = '//*[contains(concat(" ",normalize-space(@class)," ")," footer ")]'; |
124
|
|
|
|
125
|
|
|
public $orderNumberExtractorXpath; |
126
|
|
|
|
127
|
|
|
public function getOrderNumberExtractorXpath() |
128
|
|
|
{ |
129
|
|
|
return $this->translatePlaceholders($this->orderNumberExtractorXpath); |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
public function getGuaranteedPageLoadedElementDisplayedXpath() |
133
|
|
|
{ |
134
|
|
|
return $this->translatePlaceholders($this->guaranteedPageLoadedElementDisplayedXpath); |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @param mixed $guaranteedPageLoadedElementDisplayedXpath |
139
|
|
|
*/ |
140
|
|
|
public function setGuaranteedPageLoadedElementDisplayedXpath($guaranteedPageLoadedElementDisplayedXpath) |
141
|
|
|
{ |
142
|
|
|
$this->guaranteedPageLoadedElementDisplayedXpath = $guaranteedPageLoadedElementDisplayedXpath; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @return string |
147
|
|
|
*/ |
148
|
|
|
public function getBillingNewAddressXpath() |
149
|
|
|
{ |
150
|
|
|
return $this->translatePlaceholders($this->billingNewAddressXpath); |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @return string |
155
|
|
|
*/ |
156
|
|
|
public function getShippingNewAddressXpath() |
157
|
|
|
{ |
158
|
|
|
return $this->translatePlaceholders($this->shippingNewAddressXpath); |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* @return mixed |
163
|
|
|
*/ |
164
|
|
|
public function getDoNotUseBillingAddressForShipping() |
165
|
|
|
{ |
166
|
|
|
return $this->doNotUseBillingAddressForShipping; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return mixed |
171
|
|
|
*/ |
172
|
|
|
public function getUseBillingAddressForShipping() |
173
|
|
|
{ |
174
|
|
|
return $this->useBillingAddressForShipping; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @return string |
179
|
|
|
*/ |
180
|
|
|
public function getBillingAddressDropdownXpath() |
181
|
|
|
{ |
182
|
|
|
return $this->translatePlaceholders($this->billingAddressDropdownXpath); |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return string |
187
|
|
|
*/ |
188
|
|
|
public function getPasswordInputXpath() |
189
|
|
|
{ |
190
|
|
|
return $this->translatePlaceholders($this->passwordInputXpath); |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @return string |
195
|
|
|
*/ |
196
|
|
|
public function getConfirmPasswordInputXpath() |
197
|
|
|
{ |
198
|
|
|
return $this->translatePlaceholders($this->confirmPasswordInputXpath); |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
|
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @return string |
205
|
|
|
*/ |
206
|
|
|
public function getRegisterNewCustomerCheckoutButtonXpath() |
207
|
|
|
{ |
208
|
|
|
return $this->translatePlaceholders($this->registerNewCustomerCheckoutButtonXpath); |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @return string |
213
|
|
|
*/ |
214
|
|
|
public function getCustomerEmailInputXpath() |
215
|
|
|
{ |
216
|
|
|
return $this->translatePlaceholders($this->customerEmailInputXpath); |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @return string |
221
|
|
|
*/ |
222
|
|
|
public function getCustomerPasswordInputXpath() |
223
|
|
|
{ |
224
|
|
|
return $this->translatePlaceholders($this->customerPasswordInputXpath); |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @return string |
229
|
|
|
*/ |
230
|
|
|
public function getCustomerButtonXpath() |
231
|
|
|
{ |
232
|
|
|
return $this->translatePlaceholders($this->customerButtonXpath); |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
|
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* @return string |
239
|
|
|
*/ |
240
|
|
|
public function getShippingMethodFormXpath() |
241
|
|
|
{ |
242
|
|
|
return $this->translatePlaceholders($this->shippingMethodFormXpath); |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @return string |
247
|
|
|
*/ |
248
|
|
|
public function getOrderReceivedCompleteXpath() |
249
|
|
|
{ |
250
|
|
|
return $this->translatePlaceholders($this->orderReceivedCompleteXpath); |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
|
254
|
|
|
/** |
255
|
|
|
* @return string |
256
|
|
|
*/ |
257
|
|
|
public function getPaymentMethodContinueButtonXpath() |
258
|
|
|
{ |
259
|
|
|
return $this->translatePlaceholders($this->paymentMethodContinueButtonXpath); |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* @return string |
264
|
|
|
*/ |
265
|
|
|
public function getShippingMethodContinueButtonXpath() |
266
|
|
|
{ |
267
|
|
|
return $this->translatePlaceholders($this->shippingMethodContinueButtonXpath); |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* @return string |
272
|
|
|
*/ |
273
|
|
|
public function getPlaceOrderButtonXpath() |
274
|
|
|
{ |
275
|
|
|
return $this->translatePlaceholders($this->placeOrderButtonXpath); |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* @return string |
281
|
|
|
*/ |
282
|
|
|
public function getPaymentMethodContinueCompleteXpath() |
283
|
|
|
{ |
284
|
|
|
return $this->translatePlaceholders($this->paymentMethodContinueCompleteXpath); |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
|
288
|
|
|
public function getDefaultShippingXpath() |
289
|
|
|
{ |
290
|
|
|
return $this->translatePlaceholders($this->defaultShippingXpath); |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @return string |
295
|
|
|
*/ |
296
|
|
|
public function getShippingMethodContinueCompletedXpath() |
297
|
|
|
{ |
298
|
|
|
return $this->translatePlaceholders($this->shippingMethodContinueCompletedXpath); |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* @return string |
303
|
|
|
*/ |
304
|
|
|
public function getShippingFirstNameXpath() |
305
|
|
|
{ |
306
|
|
|
return $this->translatePlaceholders($this->shippingFirstNameXpath); |
307
|
|
|
} |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @param string $shippinFirstNameXpath |
|
|
|
|
311
|
|
|
*/ |
312
|
|
|
public function setShippingFirstNameXpath($shippingFirstNameXpath) |
313
|
|
|
{ |
314
|
|
|
$this->shippingFirstNameXpath = $shippingFirstNameXpath; |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
/** |
318
|
|
|
* @return string |
319
|
|
|
*/ |
320
|
|
|
public function getShippingLastNameXpath() |
321
|
|
|
{ |
322
|
|
|
return $this->translatePlaceholders($this->shippingLastNameXpath); |
323
|
|
|
} |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* @param string $shippingLastNameXpath |
327
|
|
|
*/ |
328
|
|
|
public function setShippingLastNameXpath($shippingLastNameXpath) |
329
|
|
|
{ |
330
|
|
|
$this->shippingLastNameXpath = $shippingLastNameXpath; |
331
|
|
|
} |
332
|
|
|
|
333
|
|
|
/** |
334
|
|
|
* @return string |
335
|
|
|
*/ |
336
|
|
|
public function getShippingCompanyXpath() |
337
|
|
|
{ |
338
|
|
|
return $this->translatePlaceholders($this->shippingCompanyXpath); |
339
|
|
|
} |
340
|
|
|
|
341
|
|
|
/** |
342
|
|
|
* @param string $shippingCompanyXpath |
343
|
|
|
*/ |
344
|
|
|
public function setShippingCompanyXpath($shippingCompanyXpath) |
345
|
|
|
{ |
346
|
|
|
$this->shippingCompanyXpath = $shippingCompanyXpath; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @return string |
351
|
|
|
*/ |
352
|
|
|
public function getShippingEmailAddressXpath() |
353
|
|
|
{ |
354
|
|
|
return $this->translatePlaceholders($this->shippingEmailAddressXpath); |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* @param string $shippingEmailAddressXpath |
359
|
|
|
*/ |
360
|
|
|
public function setShippingEmailAddressXpath($shippingEmailAddressXpath) |
361
|
|
|
{ |
362
|
|
|
$this->shippingEmailAddressXpath = $shippingEmailAddressXpath; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* @return string |
367
|
|
|
*/ |
368
|
|
|
public function getShippingAddressXpath() |
369
|
|
|
{ |
370
|
|
|
return $this->translatePlaceholders($this->shippingAddressXpath); |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* @param string $shippingAddressXpath |
375
|
|
|
*/ |
376
|
|
|
public function setShippingAddressXpath($shippingAddressXpath) |
377
|
|
|
{ |
378
|
|
|
$this->shippingAddressXpath = $shippingAddressXpath; |
379
|
|
|
} |
380
|
|
|
|
381
|
|
|
/** |
382
|
|
|
* @return string |
383
|
|
|
*/ |
384
|
|
|
public function getShippingAddress2Xpath() |
385
|
|
|
{ |
386
|
|
|
return $this->translatePlaceholders($this->shippingAddress2Xpath); |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
/** |
390
|
|
|
* @param string $shippingAddress2Xpath |
391
|
|
|
*/ |
392
|
|
|
public function setShippingAddress2Xpath($shippingAddress2Xpath) |
393
|
|
|
{ |
394
|
|
|
$this->shippingAddress2Xpath = $shippingAddress2Xpath; |
395
|
|
|
} |
396
|
|
|
|
397
|
|
|
/** |
398
|
|
|
* @return string |
399
|
|
|
*/ |
400
|
|
|
public function getShippingCityXpath() |
401
|
|
|
{ |
402
|
|
|
return $this->translatePlaceholders($this->shippingCityXpath); |
403
|
|
|
} |
404
|
|
|
|
405
|
|
|
/** |
406
|
|
|
* @param string $shippingCityXpath |
407
|
|
|
*/ |
408
|
|
|
public function setShippingCityXpath($shippingCityXpath) |
409
|
|
|
{ |
410
|
|
|
$this->shippingCityXpath = $shippingCityXpath; |
411
|
|
|
} |
412
|
|
|
|
413
|
|
|
/** |
414
|
|
|
* @return string |
415
|
|
|
*/ |
416
|
|
|
public function getShippingRegionIdXpath($region) |
417
|
|
|
{ |
418
|
|
|
$return = sprintf($this->shippingRegionIdXpath, $region); |
419
|
|
|
return $this->translatePlaceholders($return); |
420
|
|
|
} |
421
|
|
|
|
422
|
|
|
/** |
423
|
|
|
* @param string $shippingRegionIdXpath |
424
|
|
|
*/ |
425
|
|
|
public function setShippingRegionIdXpath($shippingRegionIdXpath) |
426
|
|
|
{ |
427
|
|
|
$this->shippingRegionIdXpath = $shippingRegionIdXpath; |
428
|
|
|
} |
429
|
|
|
|
430
|
|
|
/** |
431
|
|
|
* @return string |
432
|
|
|
*/ |
433
|
|
|
public function getShippingPostCodeXpath() |
434
|
|
|
{ |
435
|
|
|
return $this->translatePlaceholders($this->shippingPostCodeXpath); |
436
|
|
|
} |
437
|
|
|
|
438
|
|
|
/** |
439
|
|
|
* @param string $shippingPostCodeXpath |
440
|
|
|
*/ |
441
|
|
|
public function setShippingPostCodeXpath($shippingPostCodeXpath) |
442
|
|
|
{ |
443
|
|
|
$this->shippingPostCodeXpath = $shippingPostCodeXpath; |
444
|
|
|
} |
445
|
|
|
|
446
|
|
|
/** |
447
|
|
|
* @return string |
448
|
|
|
*/ |
449
|
|
|
public function getShippingCountryIdXpath($country) |
450
|
|
|
{ |
451
|
|
|
$return = sprintf($this->shippingCountryIdXpath, $country); |
452
|
|
|
return $this->translatePlaceholders($return); |
453
|
|
|
} |
454
|
|
|
|
455
|
|
|
/** |
456
|
|
|
* @param string $shippingCountryIdXpath |
457
|
|
|
*/ |
458
|
|
|
public function setShippingCountryIdXpath($shippingCountryIdXpath) |
459
|
|
|
{ |
460
|
|
|
$this->shippingCountryIdXpath = $shippingCountryIdXpath; |
461
|
|
|
} |
462
|
|
|
|
463
|
|
|
/** |
464
|
|
|
* @return string |
465
|
|
|
*/ |
466
|
|
|
public function getShippingTelephoneXpath() |
467
|
|
|
{ |
468
|
|
|
return $this->translatePlaceholders($this->shippingTelephoneXpath); |
469
|
|
|
} |
470
|
|
|
|
471
|
|
|
/** |
472
|
|
|
* @param string $shippingTelephoneXpath |
473
|
|
|
*/ |
474
|
|
|
public function setShippingTelephoneXpath($shippingTelephoneXpath) |
475
|
|
|
{ |
476
|
|
|
$this->shippingTelephoneXpath = $shippingTelephoneXpath; |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
/** |
480
|
|
|
* @return string |
481
|
|
|
*/ |
482
|
|
|
public function getShippingFaxXpath() |
483
|
|
|
{ |
484
|
|
|
return $this->translatePlaceholders($this->shippingFaxXpath); |
485
|
|
|
} |
486
|
|
|
|
487
|
|
|
/** |
488
|
|
|
* @param string $shippingFaxXpath |
489
|
|
|
*/ |
490
|
|
|
public function setShippingFaxXpath($shippingFaxXpath) |
491
|
|
|
{ |
492
|
|
|
$this->shippingFaxXpath = $shippingFaxXpath; |
493
|
|
|
} |
494
|
|
|
|
495
|
|
|
/** |
496
|
|
|
* @return string |
497
|
|
|
*/ |
498
|
|
|
public function getShippingContinueButtonXpath() |
499
|
|
|
{ |
500
|
|
|
return $this->translatePlaceholders($this->shippingContinueButtonXpath); |
501
|
|
|
} |
502
|
|
|
|
503
|
|
|
/** |
504
|
|
|
* @param string $shippingContinueButtonXpath |
505
|
|
|
*/ |
506
|
|
|
public function setShippingContinueButtonXpath($shippingContinueButtonXpath) |
507
|
|
|
{ |
508
|
|
|
$this->shippingContinueButtonXpath = $shippingContinueButtonXpath; |
509
|
|
|
} |
510
|
|
|
|
511
|
|
|
/** |
512
|
|
|
* @return string |
513
|
|
|
*/ |
514
|
|
|
public function getShippingContinueCompletedXpath() |
515
|
|
|
{ |
516
|
|
|
return $this->translatePlaceholders($this->shippingContinueCompletedXpath); |
517
|
|
|
} |
518
|
|
|
|
519
|
|
|
/** |
520
|
|
|
* @param string $shippingContinueCompletedXpath |
521
|
|
|
*/ |
522
|
|
|
public function setShippingContinueCompletedXpath($shippingContinueCompletedXpath) |
523
|
|
|
{ |
524
|
|
|
$this->shippingContinueCompletedXpath = $shippingContinueCompletedXpath; |
525
|
|
|
} |
526
|
|
|
|
527
|
|
|
public function getBillingContinueCompletedXpath() |
528
|
|
|
{ |
529
|
|
|
return $this->translatePlaceholders($this->billingContinueCompletedXpath); |
530
|
|
|
} |
531
|
|
|
|
532
|
|
|
public function getContinueButtonXpath() |
533
|
|
|
{ |
534
|
|
|
return $this->translatePlaceholders($this->continueButtonXpath); |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
public function getGuestCheckoutButtonXpath() |
538
|
|
|
{ |
539
|
|
|
return $this->translatePlaceholders($this->guestCheckoutButtonXpath); |
540
|
|
|
} |
541
|
|
|
|
542
|
|
|
/** |
543
|
|
|
* @return string |
544
|
|
|
*/ |
545
|
|
|
public function getBillingFirstNameXpath() |
546
|
|
|
{ |
547
|
|
|
return $this->translatePlaceholders($this->billingFirstNameXpath); |
548
|
|
|
} |
549
|
|
|
|
550
|
|
|
/** |
551
|
|
|
* @return string |
552
|
|
|
*/ |
553
|
|
|
public function getBillingLastNameXpath() |
554
|
|
|
{ |
555
|
|
|
return $this->translatePlaceholders($this->billingLastNameXpath); |
556
|
|
|
} |
557
|
|
|
|
558
|
|
|
/** |
559
|
|
|
* @return string |
560
|
|
|
*/ |
561
|
|
|
public function getBillingCompanyXpath() |
562
|
|
|
{ |
563
|
|
|
return $this->translatePlaceholders($this->billingCompanyXpath); |
564
|
|
|
} |
565
|
|
|
|
566
|
|
|
/** |
567
|
|
|
* @return string |
568
|
|
|
*/ |
569
|
|
|
public function getBillingEmailAddressXpath() |
570
|
|
|
{ |
571
|
|
|
return $this->translatePlaceholders($this->billingEmailAddressXpath); |
572
|
|
|
} |
573
|
|
|
|
574
|
|
|
/** |
575
|
|
|
* @return string |
576
|
|
|
*/ |
577
|
|
|
public function getBillingAddressXpath() |
578
|
|
|
{ |
579
|
|
|
return$this->translatePlaceholders( $this->billingAddressXpath); |
580
|
|
|
} |
581
|
|
|
|
582
|
|
|
/** |
583
|
|
|
* @return string |
584
|
|
|
*/ |
585
|
|
|
public function getBillingAddress2Xpath() |
586
|
|
|
{ |
587
|
|
|
return $this->translatePlaceholders($this->billingAddress2Xpath); |
588
|
|
|
} |
589
|
|
|
|
590
|
|
|
/** |
591
|
|
|
* @return string |
592
|
|
|
*/ |
593
|
|
|
public function getBillingCityXpath() |
594
|
|
|
{ |
595
|
|
|
return $this->translatePlaceholders($this->billingCityXpath); |
596
|
|
|
} |
597
|
|
|
|
598
|
|
|
/** |
599
|
|
|
* @return string |
600
|
|
|
*/ |
601
|
|
|
public function getBillingRegionIdXpath($region) |
602
|
|
|
{ |
603
|
|
|
$return = sprintf($this->billingRegionIdXpath, $region); |
604
|
|
|
return $this->translatePlaceholders($return); |
605
|
|
|
} |
606
|
|
|
|
607
|
|
|
/** |
608
|
|
|
* @return string |
609
|
|
|
*/ |
610
|
|
|
public function getBillingPostCodeXpath() |
611
|
|
|
{ |
612
|
|
|
return $this->translatePlaceholders($this->billingPostCodeXpath); |
613
|
|
|
} |
614
|
|
|
|
615
|
|
|
/** |
616
|
|
|
* @return string |
617
|
|
|
*/ |
618
|
|
|
public function getBillingCountryIdXpath($country) |
619
|
|
|
{ |
620
|
|
|
$return = sprintf($this->billingCountryIdXpath, $country); |
621
|
|
|
return $this->translatePlaceholders($return); |
622
|
|
|
} |
623
|
|
|
|
624
|
|
|
/** |
625
|
|
|
* @return string |
626
|
|
|
*/ |
627
|
|
|
public function getBillingTelephoneXpath() |
628
|
|
|
{ |
629
|
|
|
return $this->translatePlaceholders($this->billingTelephoneXpath); |
630
|
|
|
} |
631
|
|
|
|
632
|
|
|
/** |
633
|
|
|
* @return string |
634
|
|
|
*/ |
635
|
|
|
public function getBillingFaxXpath() |
636
|
|
|
{ |
637
|
|
|
return $this->translatePlaceholders($this->billingFaxXpath); |
638
|
|
|
} |
639
|
|
|
|
640
|
|
|
/** |
641
|
|
|
* @return string |
642
|
|
|
*/ |
643
|
|
|
public function getBillingContinueButtonXpath() |
644
|
|
|
{ |
645
|
|
|
return $this->translatePlaceholders($this->billingContinueButtonXpath); |
646
|
|
|
} |
647
|
|
|
|
648
|
|
|
/** |
649
|
|
|
* @return string |
650
|
|
|
*/ |
651
|
|
|
public function getCartSummaryCheckoutSubTotal() |
652
|
|
|
{ |
653
|
|
|
return $this->translatePlaceholders($this->cartSummaryCheckoutSubTotal); |
654
|
|
|
} |
655
|
|
|
|
656
|
|
|
/** |
657
|
|
|
* @return string |
658
|
|
|
*/ |
659
|
|
|
public function getCartSummaryCheckoutTax() |
660
|
|
|
{ |
661
|
|
|
return $this->translatePlaceholders($this->cartSummaryCheckoutTax); |
662
|
|
|
} |
663
|
|
|
|
664
|
|
|
/** |
665
|
|
|
* @return string |
666
|
|
|
*/ |
667
|
|
|
public function getCartSummaryCheckoutGrandTotal() |
668
|
|
|
{ |
669
|
|
|
return $this->translatePlaceholders($this->cartSummaryCheckoutGrandTotal); |
670
|
|
|
} |
671
|
|
|
|
672
|
|
|
/** |
673
|
|
|
* @return string |
674
|
|
|
*/ |
675
|
|
|
public function getCartSummaryCheckoutShippingTotal() |
676
|
|
|
{ |
677
|
|
|
return $this->translatePlaceholders($this->cartSummaryCheckoutShippingTotal); |
678
|
|
|
} |
679
|
|
|
|
680
|
|
|
|
681
|
|
|
|
682
|
|
|
/** |
683
|
|
|
* @return string |
684
|
|
|
*/ |
685
|
|
|
public function getCartSummaryCheckoutProductLoopPriceXpath($itemCount) |
686
|
|
|
{ |
687
|
|
|
$return = sprintf($this->cartSummaryCheckoutProductLoopPriceXpath , $itemCount); |
688
|
|
|
return $this->translatePlaceholders($return); |
689
|
|
|
} |
690
|
|
|
|
691
|
|
|
/** |
692
|
|
|
* @return string |
693
|
|
|
*/ |
694
|
|
|
public function getCartSummaryCheckoutProductLoopNameXpath($itemCount) |
695
|
|
|
{ |
696
|
|
|
$return = sprintf($this->cartSummaryCheckoutProductLoopNameXpath , $itemCount); |
697
|
|
|
return $this->translatePlaceholders($return); |
698
|
|
|
} |
699
|
|
|
|
700
|
|
|
/** |
701
|
|
|
* @return string |
702
|
|
|
*/ |
703
|
|
|
public function getCartSummaryCheckoutProductLoopQtyXpath($itemCount) |
704
|
|
|
{ |
705
|
|
|
$return = sprintf($this->cartSummaryCheckoutProductLoopQtyXpath , $itemCount); |
706
|
|
|
return $this->translatePlaceholders($return); |
707
|
|
|
} |
708
|
|
|
|
709
|
|
|
/** |
710
|
|
|
* @return string |
711
|
|
|
*/ |
712
|
|
|
public function getCartSummaryCheckoutProductLoopSubtotalXpath($itemCount) |
713
|
|
|
{ |
714
|
|
|
$return = sprintf($this->cartSummaryCheckoutProductLoopSubtotalXpath , $itemCount); |
715
|
|
|
return $this->translatePlaceholders($return); |
716
|
|
|
} |
717
|
|
|
|
718
|
|
|
} |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.