This refactoring pattern involves grouping parameters that naturally go together into a single object. When you see a group of data items that regularly travel together, appearing in function after function, it's a sign they should be combined into a single object.
Check https://rafael.bernard-araujo.com/refactoring-patterns/introduce-parameter-object
There are PHP and Rust implemenation examples.
Descubra mais sobre Rafael Bernard Araujo
Assine para receber nossas notícias mais recentes por e-mail.