Adds OOP design patterns to PHP's Mongo extension