My design patterns in PHP