Design Pattern: Composite Pattern in PHP
Composite pattern represents the hierarchy of a group of objects in a tree structure. The client can treat a single object and list/group of objects the same way, so it becomes easy for the client. This article describes Composite pattern implementation in PHP.