<?php
namespace App\Entity;
use App\Repository\NotificationSessionRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NotificationSessionRepository::class)]
class NotificationSession
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'notificationSessions')]
private ?Notification $notification = null;
#[ORM\ManyToOne(inversedBy: 'notificationSessions')]
private ?Evenement $session = null;
#[ORM\Column(type: Types::ARRAY, nullable: true)]
private array $inscritsSelectionnes = [];
#[ORM\Column(nullable: true)]
private ?int $nombreInscrits = null;
public function getId(): ?int
{
return $this->id;
}
public function getNotification(): ?Notification
{
return $this->notification;
}
public function setNotification(?Notification $notification): self
{
$this->notification = $notification;
return $this;
}
public function getSession(): ?Evenement
{
return $this->session;
}
public function setSession(?Evenement $session): self
{
$this->session = $session;
return $this;
}
public function getInscritsSelectionnes(): array
{
return $this->inscritsSelectionnes;
}
public function setInscritsSelectionnes(?array $inscritsSelectionnes): self
{
$this->inscritsSelectionnes = $inscritsSelectionnes;
return $this;
}
public function getNombreInscrits(): ?int
{
return $this->nombreInscrits;
}
public function setNombreInscrits(?int $nombreInscrits): self
{
$this->nombreInscrits = $nombreInscrits;
return $this;
}
}