feat : Decorator basic

This commit is contained in:
2025-09-05 15:00:28 +08:00
parent d43d38d820
commit 5e8cc5c61e
15 changed files with 264 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Interface\Test\Adapter;
interface PaymentGateway
interface PaymentGatewayInterface
{
public function pay(float $amount): array;
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Interface\Test\Decorator;
interface ComponentInterface
{
/**
* 组件接口
* @return string
*/
public function operation(): string;
}