December 2016
Beginner to intermediate
238 pages
6h 10m
English
© Kelt Dockins 2017
Kelt Dockins, Design Patterns in PHP and Laravel, 10.1007/978-1-4842-2451-9_11
Kelt Dockins1
(1)Dolph, Arkansas, USA
$> git checkout compositeCompose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.1
A lot of things in life have a hierarchical structure : family trees, relationships, organizations, language, nature, military, government, addresses, workplace, games, file structure, and much more. Sometimes things are easier to think about in hierarchies. Imagine trying to try explain your family tree using only first names. Hierarchies allow us to take a complex system and break it down into related ...
Read now
Unlock full access