Code example from PHP architect s guide to php design patterns jasone sweat