EFL
Models

SectorProductInfoTree

Tree of sectors, classes and product types returned by the sector-class-type catalogue endpoint.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Products\SectorProductInfoTree represents the hierarchical product catalogue returned by /Products/GetSectorClassAndType. It contains a tree identifier, optional feed date and a list of top‑level Sector nodes.

Class definition

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

    public ?\DateTimeImmutable $feedDate;

    /** @var Sector[] */
    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.
itemsSector[]YesList of root sector nodes in the catalogue tree.

Methods

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

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

Usage in the SDK