PHP5 desing patterns.