EFL
Models

StatementLead

Single lead statement or consent used in contact forms.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Lead\StatementLead models a statement or consent associated with a lead. It is part of the ContactData payload for /Lead/SendContactForm.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Lead
  • Class: final StatementLead
final class StatementLead
{
    public static function builder(): StatementLeadBuilder;

    public function __construct(
        int $statementConfigurationId,
        ?int $statementCategoryId = null,
        ?bool $selected = null
    );

    public function toRequestPayload(): array;
}

Properties

NameTypeRequiredDescription
statementConfigurationIdintYesIdentifier of the statement configuration.
statementCategoryIdint|nullNoOptional category identifier.
selectedbool|nullNoWhether the statement is selected/accepted.

Methods

MethodKindReturn typeDescription
builder()staticStatementLeadBuilderReturns a fluent builder for constructing StatementLead instances.
toRequestPayload()instancearray<string,mixed>Serialises the statement into the structure expected by EFL.

toRequestPayload() returns an array with the following shape:

  • statementConfigurationId – maps to the property,
  • statementCategoryId – included only if not null,
  • selected – included only if not null.

Usage in the SDK