EFL
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

NameTypeRequiredDescription
namestring|nullNoClass name (e.g. category of assets).
productTypesProductType[]YesList of product types under this class.

Methods

MethodKindReturn typeDescription
fromArray()staticProductClassCreates 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