src/Domain/Entity/Notification.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Domain\Entity;
  4. use App\Domain\Entity\Behavior\Identifiable;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * Class Notification
  8.  * @package App\Domain\Entity
  9.  */
  10. class Notification
  11. {
  12.     use Identifiable;
  13.     use TimestampableEntity;
  14.     public const STATE_NEW 'new';
  15.     public const STATE_SENT 'sent';
  16.     public string $subject;
  17.     public string $recipientClassName;
  18.     public ?int $recipientId;
  19.     public string $recipientTo;
  20.     public string $recipientsCc;
  21.     public string $body;
  22.     public NotificationChannel $channel;
  23.     public string $state;
  24.     /**
  25.      * Notification constructor.
  26.      */
  27.     public function __construct()
  28.     {
  29.         $this->state self::STATE_NEW;
  30.     }
  31. }