@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | * can be executed one after the other, each |
496 | 496 | * being less specific than the last... |
497 | 497 | * |
498 | - * @return array |
|
498 | + * @return boolean |
|
499 | 499 | */ |
500 | 500 | protected function addToResults($listToAdd) |
501 | 501 | { |
@@ -518,8 +518,8 @@ discard block |
||
518 | 518 | * can be executed one after the other, each |
519 | 519 | * being less specific than the last... |
520 | 520 | * |
521 | - * @param array $words - words being search |
|
522 | 521 | * @param array $fields - fields being searched |
522 | + * @param string $keywordPhrase |
|
523 | 523 | * |
524 | 524 | * @return array |
525 | 525 | */ |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | * |
652 | 652 | * @see Order::doNextStatus |
653 | 653 | * |
654 | - * @param Order object |
|
654 | + * @param Order Order |
|
655 | 655 | * |
656 | 656 | * @return bool - true if the current step is ready to be run... |
657 | 657 | **/ |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | * |
671 | 671 | * @see Order::doNextStatus |
672 | 672 | * |
673 | - * @param Order object |
|
673 | + * @param Order Order |
|
674 | 674 | * |
675 | 675 | * @return bool - true if run correctly. |
676 | 676 | **/ |
@@ -714,6 +714,7 @@ discard block |
||
714 | 714 | * |
715 | 715 | * @param string $code: the name of the step to check |
716 | 716 | * @param bool $orIsEqualTo if set to true, this method will return TRUE if the step being checked is the current one |
717 | + * @param string $code |
|
717 | 718 | * |
718 | 719 | * @return bool |
719 | 720 | **/ |
@@ -966,6 +967,11 @@ discard block |
||
966 | 967 | return $this->hasCustomerMessage() ? _t('OrderStep.YES', 'Yes') : _t('OrderStep.NO', 'No'); |
967 | 968 | } |
968 | 969 | |
970 | + /** |
|
971 | + * @param Order $order |
|
972 | + * |
|
973 | + * @return boolean|string |
|
974 | + */ |
|
969 | 975 | public function CalculatedEmailSubject($order = null) |
970 | 976 | { |
971 | 977 | return $this->EmailSubject; |
@@ -979,7 +985,7 @@ discard block |
||
979 | 985 | /** |
980 | 986 | * Formatted answer for "hasCustomerMessage". |
981 | 987 | * |
982 | - * @return string |
|
988 | + * @return DBField |
|
983 | 989 | */ |
984 | 990 | public function ShowAsSummary() |
985 | 991 | { |
@@ -989,7 +995,7 @@ discard block |
||
989 | 995 | /** |
990 | 996 | * |
991 | 997 | * |
992 | - * @return string |
|
998 | + * @return DBField |
|
993 | 999 | */ |
994 | 1000 | public function getShowAsSummary() |
995 | 1001 | { |
@@ -1049,7 +1055,7 @@ discard block |
||
1049 | 1055 | /** |
1050 | 1056 | * Formatted answer for "hasCustomerMessage". |
1051 | 1057 | * |
1052 | - * @return string |
|
1058 | + * @return DBField |
|
1053 | 1059 | */ |
1054 | 1060 | public function NameAndDescription() |
1055 | 1061 | { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @see Order::doNextStatus |
74 | 74 | * |
75 | - * @param Order object |
|
75 | + * @param Order Order |
|
76 | 76 | * |
77 | 77 | * @return bool - true if the current step is ready to be run... |
78 | 78 | **/ |
@@ -89,9 +89,9 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @see Order::doNextStatus |
91 | 91 | * |
92 | - * @param Order object |
|
92 | + * @param Order Order |
|
93 | 93 | * |
94 | - * @return bool - true if run correctly. |
|
94 | + * @return boolean|null - true if run correctly. |
|
95 | 95 | **/ |
96 | 96 | public function doStep(Order $order) |
97 | 97 | { |
@@ -163,6 +163,9 @@ discard block |
||
163 | 163 | return _t('OrderStep.SENT_DESCRIPTION', 'During this step we record the delivery details for the order such as the courrier ticket number and whatever else is relevant.'); |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @param Order $order |
|
168 | + */ |
|
166 | 169 | public function CalculatedEmailSubject($order = null) |
167 | 170 | { |
168 | 171 | $v = null; |
@@ -176,6 +179,9 @@ discard block |
||
176 | 179 | return $v; |
177 | 180 | } |
178 | 181 | |
182 | + /** |
|
183 | + * @param Order $order |
|
184 | + */ |
|
179 | 185 | public function CalculatedCustomerMessage($order = null) |
180 | 186 | { |
181 | 187 | $v = null; |