<?php
/**
 * Copyright © 2018 EaDesign by Eco Active S.R.L. All rights reserved.
 * See LICENSE for license details.
 */

namespace Eadesigndev\Awb\Model\Sources;
use Magento\Framework\App\Request\Http;
use Eadesigndev\xCurier\Model\Sources\City as XCurieriCity;

#[\AllowDynamicProperties]
class City extends AbstractSource
{
    protected $carrierId;
    protected $carrierSource;
    public function __construct(
        CarrierType $carrierType,
        XCurieriCity $XCurieriCity
    )
    {
        switch ($carrierType->carierId) {
            case CarrierType::X_CURIER:
                return $this->carrierSource = $XCurieriCity;
                break;

        }
    }

    public function getAvailable()
    {
        return $this->carrierSource->toOptionArray();
    }
}