Why would Checkout accept a ShippingPolicy interface in its constructor?

from Object-oriented programming
PHP 8.3.33 intermediate 1 min

Why would Checkout accept a ShippingPolicy interface in its constructor?

Report an error