-
Factory mode
Unify the creation and return of the object (instance) of the class.
2. Single case
Avoid instantiating objects multiple times in one life cycle
3. Strategy
All policies implement a unified interface, depending on the scenario, using different objects, choose different strategies.
4. Agent
Wake-up to the business implementation of encapsulation, direct use, do not pay attention to details.
5. The viewer
When an event occurs when an event is called, the business logic of a series of observers is triggered in the event, and the observer can be dynamically added to the event person
6. Decorative Device
To one object of a business to add a different decoration, different decorations to achieve a unified decorative interface, in the object business unified implementation of all the decoration business.
7. Registrar
Accessing an instance of an object
8. Iterators
SPL Iterater
This article is from the "Jinghong" blog, please be sure to keep this source http://haocaige.blog.51cto.com/1319521/1606996
PHP design mode