Posted by FluffyCat on 12/18/28 11:51
Last month I continued my series of design patterns examples using PHP
5 with the Observer Pattern and the Prototype Pattern. Here now is my
16th example, the Adapter pattern.
http://www.fluffycat.com/PHP-Design-Patterns/Adapter/
In the Adapter Pattern we adapt a class we have to provide methods
another class needs, without changing the original class.
If you work with a lot of classes that you can not change, then this
pattern is certainly something you would want to consider using on a
regular basis.
Navigation:
[Reply to this message]
|