Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/stripe/module-payments/Model/Adminhtml/Source/
Upload File :
Current File : //home/rtorresani/www/vendor/stripe/module-payments/Model/Adminhtml/Source/BillingInterval.php

<?php

namespace StripeIntegration\Payments\Model\Adminhtml\Source;

class BillingInterval extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
{
    public function toOptionArray()
    {
        return [
            [
                'value' => 'month',
                'label' => 'Months',
                'order' => 10
            ],
            [
                'value' => 'week',
                'label' => 'Weeks',
                'order' => 20
            ],
            [
                'value' => 'day',
                'label' => 'Days',
                'order' => 30
            ],
            [
                'value' => 'year',
                'label' => 'Years',
                'order' => 40
            ]
        ];
    }

    public function getAllOptions()
    {
        if ($this->_options === null)
            $this->_options = $this->toOptionArray();

        return $this->_options;
    }
}