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
| Name | Type | Required | Description |
|---|---|---|---|
id | string|null | No | Identifier of this product tree snapshot. |
feedDate | \DateTimeImmutable|null | No | Date of the catalogue feed, if provided. |
items | Sector[] | Yes | List of root sector nodes in the catalogue tree. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | SectorProductInfoTree | Creates 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
- Returned by
EflClient::getSectorClassAndType. - Can be used to drive product selection UIs for sectors, classes and product types.