<?php

namespace limble\helpers;

use classes\slack;

abstract class limble_webhook_payload
{
    /**
     * The payload data from the webhook request.
     * @var array $payload
     */
    public array $payload = [];
    protected slack $slack;

    /**
     * The constructor initializes the payload with the provided data.
     *
     * @param array $payload The payload data from the webhook request.
     */
    public function __construct(array $payload)
    {
        $this->slack = new slack(); // Initialize the Slack class for sending notifications
        $this->payload = $payload;
    }

}