Realisation of OOP in PHP