@@ -57,7 +57,7 @@ |
||
57 | 57 | * * Tab/Section::name=Text Of Setting (will ensure that the correct section is navigated to, uses setting name (exact), not ID) |
58 | 58 | * * name=Text Of Setting (will not navigate, uses setting name (exact) not ID) |
59 | 59 | * |
60 | - * @param $identifier |
|
60 | + * @param string $identifier |
|
61 | 61 | * @param $value |
62 | 62 | * @throws \Magium\InvalidInstructionException |
63 | 63 | */ |
@@ -43,6 +43,9 @@ |
||
43 | 43 | return $this->messages; |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $message |
|
48 | + */ |
|
46 | 49 | public function addMessage($message) |
47 | 50 | { |
48 | 51 | $this->messages[] = $message; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param $nodePath |
30 | - * @return WebDriverElement |
|
30 | + * @return null|\Facebook\WebDriver\Remote\RemoteWebElement |
|
31 | 31 | */ |
32 | 32 | |
33 | 33 | public function getNode($nodePath) |
@@ -80,6 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $type |
|
85 | + */ |
|
83 | 86 | public function addFilterType($type) |
84 | 87 | { |
85 | 88 | $type = $this->filterTypeName($type); |
@@ -25,6 +25,10 @@ |
||
25 | 25 | return $this->products; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param integer $count |
|
30 | + * @param string $attribute |
|
31 | + */ |
|
28 | 32 | protected function getByXpath($type, $count, $attribute = null, $getElement = false) |
29 | 33 | { |
30 | 34 | $xpath = $this->getElementXpath($type, $count); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | - * @param $label |
|
34 | + * @param string $label |
|
35 | 35 | * @return WebDriverElement |
36 | 36 | */ |
37 | 37 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @see Magium\Magento\Actions\Checkout\Steps\CustomerBillingAddress |
40 | 40 | * |
41 | - * @param $element The name of the element |
|
41 | + * @param string $element The name of the element |
|
42 | 42 | */ |
43 | 43 | |
44 | 44 | public function bypassElement($element) |
@@ -88,6 +88,10 @@ discard block |
||
88 | 88 | return array_search($xpath, $this->bypass) === false; |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $xpath |
|
93 | + * @param string $data |
|
94 | + */ |
|
91 | 95 | protected function sendData($xpath, $data) |
92 | 96 | { |
93 | 97 | if ($this->shouldProcess($xpath)) { |
@@ -62,6 +62,10 @@ |
||
62 | 62 | return false; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $xpath |
|
67 | + * @param string $data |
|
68 | + */ |
|
65 | 69 | protected function sendData($xpath, $data) |
66 | 70 | { |
67 | 71 | if ($xpath) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | - * @return mixed |
|
141 | + * @return string |
|
142 | 142 | */ |
143 | 143 | public function getTermsAndConditionsSelectorXpath($term) |
144 | 144 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | } |
330 | 330 | |
331 | 331 | /** |
332 | - * @param string $shippinFirstNameXpath |
|
332 | + * @param string $shippingFirstNameXpath |
|
333 | 333 | */ |
334 | 334 | public function setShippingFirstNameXpath($shippingFirstNameXpath) |
335 | 335 | { |
@@ -433,6 +433,7 @@ discard block |
||
433 | 433 | } |
434 | 434 | |
435 | 435 | /** |
436 | + * @param string $region |
|
436 | 437 | * @return string |
437 | 438 | */ |
438 | 439 | public function getShippingRegionIdXpath($region) |
@@ -466,6 +467,7 @@ discard block |
||
466 | 467 | } |
467 | 468 | |
468 | 469 | /** |
470 | + * @param string $country |
|
469 | 471 | * @return string |
470 | 472 | */ |
471 | 473 | public function getShippingCountryIdXpath($country) |
@@ -546,6 +548,9 @@ discard block |
||
546 | 548 | $this->shippingContinueCompletedXpath = $shippingContinueCompletedXpath; |
547 | 549 | } |
548 | 550 | |
551 | + /** |
|
552 | + * @return string |
|
553 | + */ |
|
549 | 554 | public function getBillingContinueCompletedXpath() |
550 | 555 | { |
551 | 556 | return $this->translatePlaceholders($this->billingContinueCompletedXpath); |
@@ -618,6 +623,7 @@ discard block |
||
618 | 623 | } |
619 | 624 | |
620 | 625 | /** |
626 | + * @param string $region |
|
621 | 627 | * @return string |
622 | 628 | */ |
623 | 629 | public function getBillingRegionIdXpath($region) |
@@ -635,6 +641,7 @@ discard block |
||
635 | 641 | } |
636 | 642 | |
637 | 643 | /** |
644 | + * @param string $country |
|
638 | 645 | * @return string |
639 | 646 | */ |
640 | 647 | public function getBillingCountryIdXpath($country) |
@@ -702,6 +709,7 @@ discard block |
||
702 | 709 | |
703 | 710 | |
704 | 711 | /** |
712 | + * @param integer $itemCount |
|
705 | 713 | * @return string |
706 | 714 | */ |
707 | 715 | public function getCartSummaryCheckoutProductLoopPriceXpath($itemCount) |
@@ -711,6 +719,7 @@ discard block |
||
711 | 719 | } |
712 | 720 | |
713 | 721 | /** |
722 | + * @param integer $itemCount |
|
714 | 723 | * @return string |
715 | 724 | */ |
716 | 725 | public function getCartSummaryCheckoutProductLoopNameXpath($itemCount) |
@@ -720,6 +729,7 @@ discard block |
||
720 | 729 | } |
721 | 730 | |
722 | 731 | /** |
732 | + * @param integer $itemCount |
|
723 | 733 | * @return string |
724 | 734 | */ |
725 | 735 | public function getCartSummaryCheckoutProductLoopQtyXpath($itemCount) |
@@ -729,6 +739,7 @@ discard block |
||
729 | 739 | } |
730 | 740 | |
731 | 741 | /** |
742 | + * @param integer $itemCount |
|
732 | 743 | * @return string |
733 | 744 | */ |
734 | 745 | public function getCartSummaryCheckoutProductLoopSubtotalXpath($itemCount) |