coding test OO PHP