@zimzat
named constructors is PHP equivalent to method Overloading. I always take the example of a Geolocation value object class there is no single way to define geolocation so have the default constructor private and multiple named constructors on the same object sound logic/reasonable to me. But that's not the feature we are discussing here today
=> More informations about this toot | View the thread | More toots from nyamsprod@phpc.social
=> View zimzat@mastodon.social profile
text/gemini
This content has been proxied by September (3851b).