EFL
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

NameTypeRequiredDescription
namestring|nullNoBrand name.
modelsModelInfo[]YesList of models associated with this brand.

Methods

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