<?php
/**
 * Webkul Software.
 *
 * @category   Webkul
 * @package    Webkul_Agorae
 * @author     Webkul Software Private Limited
 * @copyright  Copyright (c) Webkul Software Private Limited (https://webkul.com)
 * @license    https://store.webkul.com/license.html
 */
namespace Webkul\Agorae\Model\Category;

use Magento\Framework\Data\OptionSourceInterface;

/**
 * Webkul Agorae Category Options Model
 */
class Options implements OptionSourceInterface
{

    /**
     * @var \Webkul\Agorae\Helper\Data
     */
    protected $_helper;

    /**
     * __construct
     * @param \Webkul\Agorae\Helper\Data $helper
     */
    public function __construct(
        \Webkul\Agorae\Helper\Data $helper
    ) {
        $this->_helper = $helper;
    }

    /**
     * Get options
     *
     * @return array
     */
    public function toOptionArray()
    {
        return $this->_helper->getTopTwoLevelCategories();
    }
}
