<?php

namespace Smashballoon\Customizer\V3;

/**
 * Class Customizer Sidebar Tab
 *
 * @since 1.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
abstract class SB_Sidebar_Tab
{
    /**
     * Get the Sidebar Tab
     * Merge Both Tab Info + Tab Sections
     *
     * @since 1.0
     *
     * @return array
     */
    function get_tab()
    {
        $tab = array_merge($this->tab_info(), ['sections' => $this->tab_sections()]);
        return $tab;
    }
    /**
     * Get the Sidebar Tab info
     *
     * @since 1.0
     *
     * @return array
     */
    abstract protected function tab_info();
    /**
     * Get the Sidebar Tab Sections
     *
     * @since 1.0
     *
     * @return array
     */
    abstract protected function tab_sections();
}
