<?php
namespace Bookaro\Controller\Admin\Settings;

defined( 'ABSPATH' ) || exit;

abstract class AbstractSettingsTab implements SettingsTabInterface
{
    protected array $context;

    public function __construct( array $context )
    {
        $this->context = $context;
    }

    protected function context( string $key, $default = null )
    {
        return $this->context[ $key ] ?? $default;
    }
}
