vpietri/magento2-developer-quickdevbar

View on GitHub
Model/Config/Source/Activate.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace ADM\QuickDevBar\Model\Config\Source;

class Activate implements \Magento\Framework\Option\ArrayInterface
{
    /**
     * Options getter
     *
     * @return array
     */
    public function toOptionArray()
    {
        return [
            ['value' => 0, 'label' => __('No')],
            ['value' => 1, 'label' => __('Yes')],
            ['value' => 2, 'label' => __('Yes with restriction')]
        ];
    }
}