EFL
Models

BrandProductInfoTree

Tree of brands and models returned for a given product type and partner.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Products\BrandProductInfoTree represents the brand–model tree returned by /Products/GetBrandModelByProductTypeIdAndPartnerGuid. It contains a tree identifier, optional feed date and a list of top‑level Brand nodes.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Products
  • Class: final BrandProductInfoTree
final class BrandProductInfoTree
{
    public ?string $id;

    public ?\DateTimeImmutable $feedDate;

    /** @var Brand[] */
    public array $items;

    public static function fromArray(array $data): self;
}

Properties

NameTypeRequiredDescription
idstring|nullNoIdentifier of this product tree snapshot.
feedDate\DateTimeImmutable|nullNoDate of the catalogue feed, if provided.
itemsBrand[]YesList of brands with their models.

Methods

MethodKindReturn typeDescription
fromArray()staticBrandProductInfoTreeCreates a tree from raw API data (id, feed date and nested brand items).

fromArray() reads the id, parses feedDate into \DateTimeImmutable when possible and builds items as an array of Brand using Brand::fromArray().

Usage in the SDK