Builder Pattern

This is an example of a Builder Pattern.

The Builder Pattern is used to separate the construction of a complex object from its representation, ensuring the same construction process can be used to create different representations. The pattern should be used when the logic for creating the complex object should be independent of the parts that make up the object and how they're assembled. The pattern is also useful when the construction process must allow different representations for the object that's constructed. In the case of this example it is a Classic style of the product as well as a Modern style.

The products below are constructed using a App\PatternBuilder\ModernBuilder

Premium Product

A modern part A for you
A modern part B for you
A modern part C for you

Light Product

A modern part A for you
A modern part C for you

Minimal Product

A modern part A for you