EFL
Builders

Builders overview

Fluent builders for request models used in the EFL Leasing SDK.

Namespace and purpose

The Imoli\EflLeasingSdk\Builder namespace contains fluent builders for the main request models used when calling the EFL Leasing Online API. They provide a more readable and less error‑prone way of constructing complex payloads than assembling nested arrays by hand.

Builders are most often used together with EflClient methods from the clients section and the corresponding models from the models section.

Groups of builders

When to use builders

Use builders when:

  • you want a fluent API instead of constructing nested arrays or calling large model constructors directly,
  • you need to enforce required fields – most builders validate required data in build() and throw a \LogicException if it is missing,
  • you want a single place where default values and composition rules are encoded.

You can always construct models directly (see the models section), but builders are recommended for application‑level code that prepares payloads for EflClient.