为什么 Checkout 应在构造器中接收 ShippingPolicy 接口?

来自 面向对象编程
PHP 8.3.33 进阶 1分钟

为什么 Checkout 应在构造器中接收 ShippingPolicy 接口?

报告错误