PHP Implementation of event driven Builder Pattern