Slide 71
Slide 71 text
S O L I D
Introduction to SOLID - @garethellis
function connect(
string $hostname,
int $port,
bool $persist = false,
bool $enableAwesomeness = true,
bool $disableFluxCapacitor = false
): Connection {
return new Connection(/** do something with arguments */);
}
$connection = connect("myawesomeserver.com", 123, true, false, true);