adding a missing feature in PHP OOP