php OOS dynamic implementation