Php design patterns.