PHP вложенный класс
check this source this will help a lot :
https://stackoverflow.com/questions/16424257/nested-or-inner-class-in-php
Xabos
check this source this will help a lot :
https://stackoverflow.com/questions/16424257/nested-or-inner-class-in-php