<?php

namespace PaymentWebhooks\Gateway\Common;

use PaymentWebhooks\Infrastructure\Config;

abstract class CommonStatusMapper
{
    protected array $map;

    protected array $jsonFields;

    public function __construct($gateway)
    {
        $config = Config::gateway($gateway) ?? [];
        $this->map = $config['status_map'] ?? [];
        $this->jsonFields = $config['json_fields'] ?? [];
    }

}
