mercredi 20 janvier 2021

Should all factory methods be public?

According to a rule in the spryker/architecture-sniffer:

All the factory methods should be public by default

Is there any good argument for that? I never stumbled upon this before when using factory patterns.

Aucun commentaire:

Enregistrer un commentaire