Examples design patterns in PHP