24 lines
776 B
PHP
24 lines
776 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\LingxingErp\Model\Source;
|
|
|
|
use Magento\Framework\Data\OptionSourceInterface;
|
|
|
|
class SyncStatus implements OptionSourceInterface
|
|
{
|
|
public function toOptionArray(): array
|
|
{
|
|
return [
|
|
['value' => 'pending', 'label' => __('Pending')],
|
|
['value' => 'processing', 'label' => __('Processing')],
|
|
['value' => 'retrying', 'label' => __('Retrying')],
|
|
['value' => 'success', 'label' => __('Success')],
|
|
['value' => 'failed', 'label' => __('Failed')],
|
|
['value' => 'ignored', 'label' => __('Ignored')],
|
|
['value' => 'canceled', 'label' => __('Canceled')],
|
|
['value' => 'not_required', 'label' => __('Not Required')],
|
|
];
|
|
}
|
|
}
|