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
| 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 | Brand[] | Yes | List of brands with their models. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | BrandProductInfoTree | Creates 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
- Returned by
EflClient::getBrandModelByProductType. - Can be used to drive brand/model pickers when constructing baskets and offers.