An implementation of the Command Pattern in PHP