<?php
/**
 * Event module
 *
 * @package NemtlyBooking
 */

namespace NemtlyBooking\Modules\Event;

use NemtlyBooking\Core\Container;
use NemtlyBooking\Core\Event_Creator;
use NemtlyBooking\Core\Module;

class Event_Module extends Module {

    /**
     * Module name
     *
     * @var string
     */
    protected $name = 'event';

    /**
     * Module dependencies
     *
     * @var array
     */
    protected $dependencies = [];

    /**
     * Constructor
     *
     * @param Container $container The dependency injection container.
     */
    public function __construct( Container $container ) {
        parent::__construct( $container );
    }

    /**
     * Initialize the module
     */
    public function init() {}

    /**
     * Add meta boxes
     */
    public function add_meta_boxes() {
        add_meta_box(
            'nemtly_event_details',
            __( 'Event Details', 'nemtly-booking' ),
            [ $this, 'renderEventMetaBox' ],
            'nemtly_event',
            'normal',
            'high'
        );
        add_meta_box(
            'nemtly_event_booking_settings',
            __( 'Booking Settings', 'nemtly-booking' ),
            [ $this, 'renderBookingSettingsMetaBox' ],
            'nemtly_event',
            'side'
        );
    }
}
