Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ItemStatusInterface.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
19 {
20  const ENTITY_ID = 'entity_id';
21  const DATA_HASH = 'data_hash';
22  const STATUS = 'status';
23  const ERROR_MESSAGE = 'error_message';
24  const ERROR_CODE = 'error_code';
25 
26  const STATUS_ACCEPTED = 'accepted';
27  const STATUS_REJECTED = 'rejected';
28 
34  public function getId();
35 
42  public function setId($entityId);
43 
49  public function getDataHash();
50 
57  public function setDataHash($hash);
58 
64  public function getStatus();
65 
72  public function setStatus($status = self::STATUS_ACCEPTED);
73 
79  public function getErrorMessage();
80 
87  public function setErrorMessage($error = null);
88 
94  public function getErrorCode();
95 
102  public function setErrorCode($errorCode = null);
103 }
$status
Definition: order_status.php:8