<?php

namespace App\Classes\Modules\ServiceTypes\Services;

use App\Classes\Modules\Banks\Services\FetchesBank;
use App\Models\SegmentConstant;

class FetchesServiceBankConfigurations
{

    /** @var FetchesBank */
    private $fetchesBank;

    /**
     * FetchesServiceBankConfigurations constructor.
     * @param FetchesBank $fetchesBank
     */
    public function __construct(FetchesBank $fetchesBank)
    {
        $this->fetchesBank = $fetchesBank;
    }

    public function execute(SegmentConstant $constants)
    {
        return $this->fetchesBank->execute(['id' => $constants->detail->bank_id]);
    }
}
