| Current Path : /home/rtorresani/www/app/code/Amasty/CronScheduleList/Model/OptionSource/ |
| Current File : //home/rtorresani/www/app/code/Amasty/CronScheduleList/Model/OptionSource/StatusFilter.php |
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Cron Schedule List for Magento 2 (System)
*/
namespace Amasty\CronScheduleList\Model\OptionSource;
use Magento\Framework\Option\ArrayInterface;
use Magento\Cron\Model\Schedule;
class StatusFilter implements ArrayInterface
{
public function toOptionArray()
{
$statuses = [
['value' => Schedule::STATUS_SUCCESS, 'label' => __('Success')],
['value' => Schedule::STATUS_PENDING, 'label' => __('Pending')],
['value' => Schedule::STATUS_RUNNING, 'label' => __('Running')],
['value' => Schedule::STATUS_ERROR, 'label' => __('Error')],
['value' => Schedule::STATUS_MISSED, 'label' => __('Missed')]
];
return $statuses;
}
}