# [YooKassa API SDK](../home.md) # Interface: ListObjectInterface ### Namespace: [\YooKassa\Common](../namespaces/yookassa-common.md) --- **Summary:** Interface ListObjectInterface. --- ### Constants * No constants found --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [add()](../classes/YooKassa-Common-ListObjectInterface.md#method_add) | | | | public | [clear()](../classes/YooKassa-Common-ListObjectInterface.md#method_clear) | | | | public | [get()](../classes/YooKassa-Common-ListObjectInterface.md#method_get) | | | | public | [getItems()](../classes/YooKassa-Common-ListObjectInterface.md#method_getItems) | | | | public | [getType()](../classes/YooKassa-Common-ListObjectInterface.md#method_getType) | | | | public | [isEmpty()](../classes/YooKassa-Common-ListObjectInterface.md#method_isEmpty) | | | | public | [merge()](../classes/YooKassa-Common-ListObjectInterface.md#method_merge) | | | | public | [remove()](../classes/YooKassa-Common-ListObjectInterface.md#method_remove) | | | | public | [setType()](../classes/YooKassa-Common-ListObjectInterface.md#method_setType) | | | | public | [toArray()](../classes/YooKassa-Common-ListObjectInterface.md#method_toArray) | | | --- ### Details * File: [lib/Common/ListObjectInterface.php](../../lib/Common/ListObjectInterface.php) * Package: \YooKassa * Parents: * [](\ArrayAccess) * [](\JsonSerializable) * [](\Countable) * [](\IteratorAggregate) * See Also: * [](https://yookassa.ru/developers/api) --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | category | | Interface | | author | | cms@yoomoney.ru | --- ## Methods #### public getType() : string ```php public getType() : string ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) **Returns:** string - #### public setType() : $this ```php public setType(string $type) : $this ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | type | | **Returns:** $this - #### public add() : $this ```php public add(mixed $item) : $this ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | mixed | item | | **Returns:** $this - #### public merge() : $this ```php public merge(iterable $data) : $this ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | iterable | data | | **Returns:** $this - #### public remove() : $this ```php public remove(int $index) : $this ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | int | index | | **Returns:** $this - #### public clear() : $this ```php public clear() : $this ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) **Returns:** $this - #### public isEmpty() : bool ```php public isEmpty() : bool ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) **Returns:** bool - #### public getItems() : \Ds\Vector ```php public getItems() : \Ds\Vector ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) **Returns:** \Ds\Vector - #### public get() : \YooKassa\Common\AbstractObject ```php public get(int $index) : \YooKassa\Common\AbstractObject ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | int | index | | **Returns:** \YooKassa\Common\AbstractObject - #### public toArray() : array ```php public toArray() : array ``` **Details:** * Inherited From: [\YooKassa\Common\ListObjectInterface](../classes/YooKassa-Common-ListObjectInterface.md) **Returns:** array - --- ### Top Namespaces * [\YooKassa](../namespaces/yookassa.md) --- ### Reports * [Errors - 0](../reports/errors.md) * [Markers - 0](../reports/markers.md) * [Deprecated - 43](../reports/deprecated.md) --- This document was automatically generated from source code comments on 2026-06-29 using [phpDocumentor](http://www.phpdoc.org/) © 2026 YooMoney