OOP in PHP fix