20 lines
466 B
PHP
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;
|
|
}
|
|
}
|