Toot

Written by ignace nyamagana butera on 2025-02-01 at 21:29

@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

Mentions

=> View zimzat@mastodon.social profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113930757672956149
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
217.715485 milliseconds
Gemini-to-HTML Time
0.701377 milliseconds

This content has been proxied by September (3851b).