随笔分类 - Structural Pattern Design
摘要:Purpose: To implement a loosely coupled architecture in order to get better testable, maintainable and extendable code. Usage: DatabaseConfiguration g
阅读全文
摘要:Purpose: To dynamically add new functionality to class instance. Booking.php BookingDecorator.php DoubleRoomBooking.php ExtraBed.php WiFi.php Tests/De
阅读全文
摘要:Purpose: A Data Mapper, is a Data Access Layer that performs bidirectional transfer of data between a persistent data store (ofen a relational databas
阅读全文
摘要:Purpose: To treat a group of objects the same way as a single instance of the object. RenderableInterface.php Form.php InputElement.php TextElement.ph
阅读全文
摘要:Purpose: Decouple an abstraction from its implementation so that the two can vary independently FormatterInterface.php PlainTextFormatter.php HtmlForm
阅读全文
摘要:Purpose: To translate one interface for a class into a compatible interface. An adapter allows classes to work together that normally could not becaus
阅读全文
摘要:Structural Design Patterns are Design Patterns that ease the design by identifying a simple way to realize relationships between entities.
阅读全文