<?php

/**
 * NotionalAndLeverageBracketsResponse1.
 *
 * PHP version 8.1
 *
 * @category Class
 *
 * @author   OpenAPI Generator team
 *
 * @see     https://openapi-generator.tech
 */

/**
 * Binance Derivatives Trading USDS Futures REST API.
 *
 * OpenAPI Specification for the Binance Derivatives Trading USDS Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 * Generated by: https://openapi-generator.tech
 * Generator version: 7.12.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Binance\Client\DerivativesTradingUsdsFutures\Model;

/**
 * NotionalAndLeverageBracketsResponse1 Class Doc Comment.
 *
 * @category Class
 *
 * @author   OpenAPI Generator team
 *
 * @see     https://openapi-generator.tech
 *
 * @implements \ArrayAccess<string, mixed>
 */
class NotionalAndLeverageBracketsResponse1
{
    public const DISCRIMINATOR = null;

    /** @var NotionalAndLeverageBracketsResponse1Inner[] */
    protected array $items = [];

    /**
     * Constructor.
     *
     * @param NotionalAndLeverageBracketsResponse1Inner[] items
     */
    public function __construct(array $items = [])
    {
        $this->items = $items;
    }

    /**
     * Type of items in the array.
     */
    public static function getItemType(): string
    {
        return '\Binance\Client\DerivativesTradingUsdsFutures\Model\NotionalAndLeverageBracketsResponse1Inner';
    }

    /**
     * Array of property to type mappings. Used for (de)serialization.
     *
     * @return array
     */
    public static function openAPITypes()
    {
        return [];
    }

    /**
     * If oneOf schema, get the possible response types.
     */
    public static function getComposedSchemas(): array
    {
        return [
        ];
    }

    /**
     * Return true if the model is an array.
     */
    public static function isArray(): bool
    {
        return true;
    }

    /**
     * @return NotionalAndLeverageBracketsResponse1Inner[]
     */
    public function getItems(): array
    {
        return $this->items;
    }

    public function addItem(NotionalAndLeverageBracketsResponse1Inner $item): void
    {
        $this->items[] = $item;
    }

    /**
     * @param NotionalAndLeverageBracketsResponse1Inner[] $items
     */
    public function addItems(array $items): void
    {
        if (empty($this->items)) {
            $this->items = $items;
        } else {
            $this->items = array_merge($this->items, $items);
        }
    }
}
