<?php
namespace Eadesigndev\NemoExpress\Model\Sources;

use Eadesigndev\Urgent\Model\Sources\AbstractSource;
use Magento\Framework\HTTP\ClientInterface;


#[\AllowDynamicProperties]
class PickupId extends AbstractSource
{
    public function __construct(
        private ClientInterface $client,
        \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
    )
    {
        parent::__construct($scopeConfig);
        $this->client = $client;
    }

    public function getAvailable()
    {
        return $this->configToValues("carriers/nemoexpress/api_keys");
    }

    public function toOptionArray()
    {
        return $this->getAvailable();
    }
}