Design Pattern PHP5