<?php
namespace Solwin\Verticalmenu\Model\Menu\Source;

class Type implements \Magento\Framework\Option\ArrayInterface
{
    const CUSTOM_URL = 1;
    const CATEGORY = 2;


    /**
     * to option array
     *
     * @return array
     */
    public function toOptionArray()
    {
        $options = [
            [
                'value' => self::CUSTOM_URL,
                'label' => __('Custom URL')
            ],
            [
                'value' => self::CATEGORY,
                'label' => __('Category')
            ],
        ];
        return $options;

    }
}
