For those of you who don’t know, “universal constructor” is the name I give to PHP constructors that always and only take a single parameter.
The parameter is an array of key-value pairs, which is then merged with a set of default keys and values.
Finally, the array is unmarshalled, usually into object properties. One [...]
Post new comment