<?php

namespace CouponsPlus\App\Coupon\Tree\Notifications;

use CouponsPlus\App\Coupon\Tree\Notifications\Buttons\Button;

class Notification
{

    protected string $message;
    protected ?Button $button;
    protected string $id;

    public function __construct(string $id, string $message, Button $button = null)
    {
        $this->id = $id;
        $this->message = $message;
        $this->button = $button;
    }

    public function getMessage(): string
    {
        return $this->message;
    }

    public function getButton(): ?Button
    {
        return $this->button;
    }

    public function getId(): string
    {
        return $this->id;
    }
}