Files
2026-09-15 10:35:56 +08:00

20 lines
466 B
PHP

<?php
declare(strict_types=1);
namespace Esun\CustomerVat\Model\Source;
use Esun\CustomerVat\Model\VatApplication;
use Magento\Framework\Data\OptionSourceInterface;
class Status implements OptionSourceInterface
{
public function toOptionArray(): array
{
$options = [];
foreach (VatApplication::getStatuses() as $value => $label) {
$options[] = ['value' => $value, 'label' => $label];
}
return $options;
}
}