![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-asynchronous-operations/Api/Data/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\AsynchronousOperations\Api\Data; /** * ItemStatusInterface interface * Temporary object with status of requested item. * Indicate if entity param was Accepted|Rejected to bulk schedule * * @api * @since 100.2.3 */ interface ItemStatusInterface { const ENTITY_ID = 'entity_id'; const DATA_HASH = 'data_hash'; const STATUS = 'status'; const ERROR_MESSAGE = 'error_message'; const ERROR_CODE = 'error_code'; const STATUS_ACCEPTED = 'accepted'; const STATUS_REJECTED = 'rejected'; /** * Get entity Id. * * @return int * @since 100.2.3 */ public function getId(); /** * Sets entity Id. * * @param int $entityId * @return $this * @since 100.2.3 */ public function setId($entityId); /** * Get hash of entity data. * * @return string md5 hash of entity params array. * @since 100.2.3 */ public function getDataHash(); /** * Sets hash of entity data. * * @param string $hash md5 hash of entity params array. * @return $this * @since 100.2.3 */ public function setDataHash($hash); /** * Get status. * * @return string accepted|rejected * @since 100.2.3 */ public function getStatus(); /** * Sets entity status. * * @param string $status accepted|rejected * @return $this * @since 100.2.3 */ public function setStatus($status = self::STATUS_ACCEPTED); /** * Get error information. * * @return string|null * @since 100.2.3 */ public function getErrorMessage(); /** * Sets error information. * * @param string|null|\Exception $error * @return $this * @since 100.2.3 */ public function setErrorMessage($error = null); /** * Get error code. * * @return int|null * @since 100.2.3 */ public function getErrorCode(); /** * Sets error information. * * @param int|null|\Exception $errorCode Default: null * @return $this * @since 100.2.3 */ public function setErrorCode($errorCode = null); }