no message
This commit is contained in:
24
Question14-AdvancedInheritance/common/PaymentInterface.php
Normal file
24
Question14-AdvancedInheritance/common/PaymentInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Common;
|
||||
|
||||
/**
|
||||
* 決済処理を行うためのインタフェース
|
||||
*/
|
||||
interface PaymentInterface
|
||||
{
|
||||
/**
|
||||
* 決済を実行する
|
||||
*
|
||||
* @param int $amount 決済金額(円)
|
||||
* @return bool 決済が成功したかどうか
|
||||
*/
|
||||
public function pay($amount);
|
||||
|
||||
/**
|
||||
* 決済方法の名前を取得する
|
||||
*
|
||||
* @return string 決済方法名(例: "クレジットカード", "銀行振込")
|
||||
*/
|
||||
public function getPaymentMethodName();
|
||||
}
|
||||
Reference in New Issue
Block a user