# ivyforms/1.1.1/backend/src/ValueObjects/Notification/NotificationContact.php

The Innovative Form Builder – IvyForms, version 1.1.1. 69 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/1.1.1/code/backend/src/ValueObjects/Notification/NotificationContact.php
- Raw: https://pluginprobe.com/plugins/ivyforms/1.1.1/raw/backend/src/ValueObjects/Notification/NotificationContact.php
- Modified: 2026-05-06T08:31:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/1.1.1/code/backend/src/ValueObjects/Notification/NotificationContact.php#L10-L20`.

```php
<?php

namespace IvyForms\ValueObjects\Notification;

use IvyForms\Common\Exceptions\ValidationException;

/**
 * Value Object for Notification Contact Information
 *
 * @package IvyForms\ValueObjects\Notification
 */
final class NotificationContact
{
    private string $sender;
    private string $receiver;
    private string $replyTo;

    public function __construct(string $sender, string $receiver, string $replyTo = '')
    {
        $this->sender = $sender;
        $this->receiver = $receiver;
        $this->replyTo = $replyTo;
    }

    public function getSender(): string
    {
        return $this->sender;
    }

    public function getReceiver(): string
    {
        return $this->receiver;
    }

    public function getReplyTo(): string
    {
        return $this->replyTo;
    }

    public function setSender(string $sender): void
    {
        $this->sender = $sender;
    }

    public function setReceiver(string $receiver): void
    {
        $this->receiver = $receiver;
    }

    public function setReplyTo(string $replyTo): void
    {
        $this->replyTo = $replyTo;
    }

    /**
     * Convert contact information to array
     *
     * @return array<string, string>
     */
    public function toArray(): array
    {
        return [
            'sender'    => $this->sender,
            'receiver'  => $this->receiver,
            'replyTo'   => $this->replyTo,
        ];
    }
}

```
