DEV Community

Discussion on: SOLID in PHP

Collapse
 
krmgns profile image
Kerem Güneş

Cool article Emmanuel, thank you.

PS: PaymentFactory.initialize() can have PayableInterface return type, by the way.

Collapse
 
evrtrabajo profile image
Emmanuel Valverde Ramos

Updated the signature of the method to public function initialize(string $type): PayableInterface Thank you for the feedback