Skip to content

Commit 64f65a3

Browse files
Stick to definition.
1 parent 6adcf67 commit 64f65a3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/base/CreditCardGateway.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getPaymentFormHtml(array $params)
3636
/**
3737
* @inheritdoc
3838
*/
39-
public function getPaymentFormModel()
39+
public function getPaymentFormModel(): BasePaymentForm
4040
{
4141
return new CreditCardPaymentForm();
4242
}

src/base/Gateway.php

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
use yii\base\NotSupportedException;
3434

3535
/**
36+
* Class Gateway
37+
*
38+
* @property string $itemBagClassName
39+
* @property string $gatewayClassName
3640
* @author Pixel & Tonic, Inc. <[email protected]>
3741
* @since 1.0
3842
*/

src/base/OffsiteGateway.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class OffsiteGateway extends Gateway
1414
/**
1515
* @inheritdoc
1616
*/
17-
public function getPaymentFormModel()
17+
public function getPaymentFormModel(): BasePaymentForm
1818
{
1919
return new OffsitePaymentForm();
2020
}

0 commit comments

Comments
 (0)