setStringPriority example

public const PRIORITY_MIN = 1;

    public function __construct(private array $options = [])
    {
    }

    public static function fromNotification(Notification $notification): self
    {
        $options = new self();
        $options->setTitle($notification->getSubject());
        $options->setMessage($notification->getContent());
        $options->setStringPriority($notification->getImportance());
        $options->addTag($notification->getEmoji());

        return $options;
    }

    public function toArray(): array
    {
        return $this->options;
    }

    public function getRecipientId(): ?string
    {
Home | Imprint | This part of the site doesn't use cookies.