Models
Brand
Represents a brand with a list of available models in the product catalogue.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Products\Brand models a brand entry in the EFL product catalogue.
It holds the brand name and an array of ModelInfo items.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Products - Class: final
Brand
final class Brand
{
public ?string $name;
/** @var ModelInfo[] */
public array $models;
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string|null | No | Brand name. |
models | ModelInfo[] | Yes | List of models associated with this brand. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | Brand | Creates a brand from raw API data (name and nested model information). |
fromArray() reads name as string and builds models from nested arrays via ModelInfo::fromArray().
Usage in the SDK
- Nested inside
BrandProductInfoTree. - Indirectly returned by
EflClient::getBrandModelByProductType.