samples of design pattern by php and c++