feat : Decorator basic
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Interface\Test\Adapter;
|
||||
|
||||
interface PaymentGateway
|
||||
interface PaymentGatewayInterface
|
||||
{
|
||||
public function pay(float $amount): array;
|
||||
}
|
||||
12
app/Interface/Test/Decorator/ComponentInterface.php
Normal file
12
app/Interface/Test/Decorator/ComponentInterface.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface\Test\Decorator;
|
||||
|
||||
interface ComponentInterface
|
||||
{
|
||||
/**
|
||||
* 组件接口
|
||||
* @return string
|
||||
*/
|
||||
public function operation(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user