src/Entity/Notification.php line 15
<?phpnamespace App\Entity;use App\Repository\NotificationRepository;use DateTime;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: NotificationRepository::class)]#[ORM\Table(name: 'notifications')]class Notification{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private ?int $id = null;#[ORM\ManyToOne(targetEntity: User::class)]#[ORM\JoinColumn(name: 'sender',nullable: true)]private ?User $sender = null;#[ORM\ManyToOne(targetEntity: User::class,inversedBy: 'notification')]#[ORM\JoinColumn(name: 'recipient',nullable: false)]private User $recipient;#[ORM\Column(name: 'send_date',type: 'datetime',nullable: false)]private DateTime $sendDate;#[ORM\Column(name: 'read_date',type: 'datetime',nullable: true)]private ?DateTime $readDate = null;#[ORM\Column(name: 'message',type: 'text',nullable: false)]private string $message;#[ORM\Column(name: 'send_to_mail',type: 'boolean',nullable: false)]private bool $sendToMail = false;public function getId(): ?int{return $this->id;}public function setId($id): self{$this->id = $id;return $this;}public function getSender(): ?User{return $this->sender;}public function setSender(?User $sender): self{$this->sender = $sender;return $this;}public function getRecipient(): User{return $this->recipient;}public function setRecipient(User $recipient): self{$this->recipient = $recipient;return $this;}public function getSendDate(): DateTime{return $this->sendDate;}public function setSendDate(DateTime $sendDate): self{$this->sendDate = $sendDate;return $this;}public function getReadDate(): ?DateTime{return $this->readDate;}public function setReadDate(?DateTime $readDate): self{$this->readDate = $readDate;return $this;}public function getMessage(): string{return $this->message;}public function setMessage(string $message): self{$this->message = $message;return $this;}public function isSendToMail(): bool{return $this->sendToMail;}public function setMail(bool $sendToMail): self{$this->sendToMail = $sendToMail;return $this;}}