<?php declare(strict_types=1);
/**
 * @package messenger
 * @author kputyr
 * @date 17.04.2025
 */

namespace IMATHUZH\Messenger;

/**
 * A data class with information about an error
 * that occurred during publishing a message.
 */
class MessagePublisherError
{
    public function __construct(
        public MessagePublisherInterface $publisher,
        public string $key,
        public string $message
    ) { }
}
