<?php
declare(strict_types=1);
namespace App\Domain\Entity;
use App\Domain\Entity\Behavior\Identifiable;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* Class Notification
* @package App\Domain\Entity
*/
class Notification
{
use Identifiable;
use TimestampableEntity;
public const STATE_NEW = 'new';
public const STATE_SENT = 'sent';
public string $subject;
public string $recipientClassName;
public ?int $recipientId;
public string $recipientTo;
public string $recipientsCc;
public string $body;
public NotificationChannel $channel;
public string $state;
/**
* Notification constructor.
*/
public function __construct()
{
$this->state = self::STATE_NEW;
}
}