Skip to content

Latest commit

 

History

History

Structural

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Structural Pattern

Structural php/src patterns explain how to assemble objects and classes into larger structures, while keeping these structures flexible and efficient.

Types

converts the interface of one object so that another object can understand it.

Bridge is a structural php/src pattern that lets you split a large class or a set of closely related classes into two separate hierarchies—abstraction and implementation—which can be developed independently of each other.

this pattern is used when we want to represent a hierarchy and we want to treat the object of the hierarchy the same way;

Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.

Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.

Use sharing to support large numbers of fine-grained objects efficiently.

Proxy is a structural php/src pattern that lets you provide a substitute or placeholder for another object.