/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Bulk/OperationInterface.php
175 строк
3 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2018 Adobe * All Rights Reserved. */ namespace Magento\Framework\Bulk; /** * Interface OperationInterface * @api * @since 103.0.0 */ interface OperationInterface extends \Magento\Framework\Api\ExtensibleDataInterface { /**#@+ * Constants for keys of data array. Identical to the name of the getter in snake case */ const ID = 'operation_key'; const BULK_ID = 'bulk_uuid'; const TOPIC_NAME = 'topic_name'; const SERIALIZED_DATA = 'serialized_data'; const RESULT_SERIALIZED_DATA = 'result_serialized_data'; const STATUS = 'status'; const RESULT_MESSAGE = 'result_message'; const ERROR_CODE = 'error_code'; /**#@-*/ /**#@+ * Status types */ const STATUS_TYPE_COMPLETE = 1; const STATUS_TYPE_RETRIABLY_FAILED = 2; const STATUS_TYPE_NOT_RETRIABLY_FAILED = 3; const STATUS_TYPE_OPEN = 4; const STATUS_TYPE_REJECTED = 5; /**#@-*/ /** * Operation id * * @return int * @since 103.0.0 */ public function getId(); /** * Set operation id * * @param int $id * @return $this * @since 103.0.0 */ public function setId($id); /** * Get bulk uuid * * @return string * @since 103.0.0 */ public function getBulkUuid(); /** * Set bulk uuid * * @param string $bulkId * @return $this * @since 103.0.0 */ public function setBulkUuid($bulkId); /** * Message Queue Topic * * @return string * @since 103.0.0 */ public function getTopicName(); /** * Set message queue topic * * @param string $topic * @return $this * @since 103.0.0 */ public function setTopicName($topic); /** * Serialized Data * * @return string * @since 103.0.0 */ public function getSerializedData(); /** * Set serialized data * * @param string $serializedData * @return $this * @since 103.0.0 */ public function setSerializedData($serializedData); /** * Result serialized Data * * @return string * @since 103.0.0 */ public function getResultSerializedData(); /** * Set result serialized data * * @param string $resultSerializedData * @return $this * @since 103.0.0 */ public function setResultSerializedData($resultSerializedData); /** * Get operation status * * OPEN | COMPLETE | RETRIABLY_FAILED | NOT_RETRIABLY_FAILED * * @return int * @since 103.0.0 */ public function getStatus(); /** * Set status * * @param int $status * @return $this * @since 103.0.0 */ public function setStatus($status); /** * Get result message * * @return string * @since 103.0.0 */ public function getResultMessage(); /** * Set result message * * @param string $resultMessage * @return $this * @since 103.0.0 */ public function setResultMessage($resultMessage); /** * Get error code * * @return int * @since 103.0.0 */ public function getErrorCode(); /** * Set error code * * @param int $errorCode * @return $this * @since 103.0.0 */ public function setErrorCode($errorCode); }