Models
ProductClass
Intermediate node in the product catalogue grouping product types under a sector.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Products\ProductClass groups product types (ProductType) within a sector.
It is part of the hierarchical structure returned by product catalogue endpoints.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Products - Class: final
ProductClass
final class ProductClass
{
public ?string $name;
/** @var ProductType[] */
public array $productTypes;
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string|null | No | Class name (e.g. category of assets). |
productTypes | ProductType[] | Yes | List of product types under this class. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | ProductClass | Creates a product class from raw API data (name and nested product types). |
fromArray() reads name as string and builds productTypes from an array via ProductType::fromArray().
Usage in the SDK
- Nested inside
SectorandSectorProductInfoTree. - Indirectly returned by
EflClient::getSectorClassAndType.