oop practice in PHP