DEV Community

Discussion on: Fluent interface and method chaining in PHP and JavaScript

Collapse
 
sergeytelpuk profile image
Sergey

It's called like a builder pattern. It isn't something new. Visit the link refactoring.guru/design-patterns/b...

Collapse
 
t3h2mas profile image
Thomas Noe

Not to be confused with the fluent builder pattern:

If your requirement is to build a complex object for which you want to set the mandatory attributes and avoid making any mistakes, then the fluent builder will be more useful rather than the traditional builder pattern.

dzone.com/articles/fluent-builder-...