Models
Sector
Top-level sector node in the product catalogue tree.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Products\Sector represents a sector node in the EFL product catalogue.
Each sector groups one or more product classes (ProductClass) that in turn contain product types.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Products - Class: final
Sector
final class Sector
{
public ?string $name;
public int $id;
/** @var ProductClass[] */
public array $classes;
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string|null | No | Sector name. |
id | int | Yes | Sector identifier. |
classes | ProductClass[] | Yes | List of product classes in this sector. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | Sector | Creates a sector from raw API data (name, id and nested product classes). |
fromArray() reads name as string, casts id to integer and builds classes from an array of nested structures via ProductClass::fromArray().
Usage in the SDK
- Used inside
SectorProductInfoTreeto represent the hierarchical product catalogue. - Indirectly returned by
EflClient::getSectorClassAndType.