| 1 |
<?php |
| 2 |
/** |
| 3 |
* Class Record |
| 4 |
* |
| 5 |
* @package Packetery\Log |
| 6 |
*/ |
| 7 |
|
| 8 |
declare( strict_types=1 ); |
| 9 |
|
| 10 |
|
| 11 |
namespace Packetery\Core\Log; |
| 12 |
|
| 13 |
/** |
| 14 |
* Class Record |
| 15 |
* |
| 16 |
* @package Packetery\Log |
| 17 |
*/ |
| 18 |
class Record { |
| 19 |
|
| 20 |
// Do not forget to add translation. |
| 21 |
public const ACTION_PACKET_SENDING = 'packet-sending'; |
| 22 |
public const ACTION_LABEL_PRINT = 'label-print'; |
| 23 |
public const ACTION_CARRIER_LIST_UPDATE = 'carrier-list-update'; |
| 24 |
public const ACTION_CARRIER_LABEL_PRINT = 'carrier-label-print'; |
| 25 |
public const ACTION_CARRIER_NUMBER_RETRIEVING = 'carrier-number-retrieving'; |
| 26 |
public const ACTION_CARRIER_TABLE_NOT_CREATED = 'carrier-table-not-created'; |
| 27 |
public const ACTION_ORDER_TABLE_NOT_CREATED = 'order-table-not-created'; |
| 28 |
public const ACTION_SENDER_VALIDATION = 'sender-validation'; |
| 29 |
public const ACTION_PACKET_STATUS_SYNC = 'packet-status-sync'; |
| 30 |
|
| 31 |
public const STATUS_SUCCESS = 'success'; |
| 32 |
public const STATUS_ERROR = 'error'; |
| 33 |
|
| 34 |
/** |
| 35 |
* Id. |
| 36 |
* |
| 37 |
* @var int|null |
| 38 |
*/ |
| 39 |
public $id; |
| 40 |
|
| 41 |
/** |
| 42 |
* Action. |
| 43 |
* |
| 44 |
* @var string |
| 45 |
*/ |
| 46 |
public $action; |
| 47 |
|
| 48 |
/** |
| 49 |
* Title. |
| 50 |
* |
| 51 |
* @var string |
| 52 |
*/ |
| 53 |
public $title; |
| 54 |
|
| 55 |
/** |
| 56 |
* Params. |
| 57 |
* |
| 58 |
* @var array |
| 59 |
*/ |
| 60 |
public $params; |
| 61 |
|
| 62 |
/** |
| 63 |
* Data. |
| 64 |
* |
| 65 |
* @var \DateTimeImmutable |
| 66 |
*/ |
| 67 |
public $date; |
| 68 |
|
| 69 |
/** |
| 70 |
* Status. |
| 71 |
* |
| 72 |
* @var string |
| 73 |
*/ |
| 74 |
public $status; |
| 75 |
|
| 76 |
/** |
| 77 |
* Note. |
| 78 |
* |
| 79 |
* @var string |
| 80 |
*/ |
| 81 |
public $note; |
| 82 |
} |
| 83 |
|