# [YooKassa API SDK](../home.md) # Class: \YooKassa\Request\Payments\StatementData\StatementFactory ### Namespace: [\YooKassa\Request\Payments\StatementData](../namespaces/yookassa-request-payments-statementdata.md) --- **Summary:** Класс, представляющий модель StatementFactory. **Description:** Фабрика создания объекта данных для отправки справки из массива. --- ### Constants * No constants found --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [factory()](../classes/YooKassa-Request-Payments-StatementData-StatementFactory.md#method_factory) | | Фабричный метод создания объекта данных для отправки справки по типу. | | public | [factoryFromArray()](../classes/YooKassa-Request-Payments-StatementData-StatementFactory.md#method_factoryFromArray) | | Фабричный метод создания объекта данных для отправки справки из массива. | --- ### Details * File: [lib/Request/Payments/StatementData/StatementFactory.php](../../lib/Request/Payments/StatementData/StatementFactory.php) * Package: YooKassa\Request * Class Hierarchy: * \YooKassa\Request\Payments\StatementData\StatementFactory * See Also: * [](https://yookassa.ru/developers/api) --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | category | | Class | | author | | cms@yoomoney.ru | --- ## Methods #### public factory() : \YooKassa\Request\Payments\StatementData\AbstractStatement ```php public factory(string|null $type = null) : \YooKassa\Request\Payments\StatementData\AbstractStatement ``` **Summary** Фабричный метод создания объекта данных для отправки справки по типу. **Details:** * Inherited From: [\YooKassa\Request\Payments\StatementData\StatementFactory](../classes/YooKassa-Request-Payments-StatementData-StatementFactory.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | type | Тип справки | **Returns:** \YooKassa\Request\Payments\StatementData\AbstractStatement - #### public factoryFromArray() : \YooKassa\Request\Payments\StatementData\AbstractStatement ```php public factoryFromArray(array|null $data = null, string|null $type = null) : \YooKassa\Request\Payments\StatementData\AbstractStatement ``` **Summary** Фабричный метод создания объекта данных для отправки справки из массива. **Details:** * Inherited From: [\YooKassa\Request\Payments\StatementData\StatementFactory](../classes/YooKassa-Request-Payments-StatementData-StatementFactory.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR null | data | Массив платежных данных | | string OR null | type | Тип справки | **Returns:** \YooKassa\Request\Payments\StatementData\AbstractStatement - --- ### 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-08-13 using [phpDocumentor](http://www.phpdoc.org/) © 2026 YooMoney