src/Entity/EmailSession.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\EmailSessionRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassEmailSessionRepository::class)]
  8. #[ApiResource]
  9. class EmailSession
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $date null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $description null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $object null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $piece null;
  23.     #[ORM\ManyToOne(inversedBy'emailSessions')]
  24.     private ?Evenement $session null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getDate(): ?\DateTimeInterface
  30.     {
  31.         return $this->date;
  32.     }
  33.     public function setDate(?\DateTimeInterface $date): self
  34.     {
  35.         $this->date $date;
  36.         return $this;
  37.     }
  38.     public function getDescription(): ?string
  39.     {
  40.         return $this->description;
  41.     }
  42.     public function setDescription(?string $description): self
  43.     {
  44.         $this->description $description;
  45.         return $this;
  46.     }
  47.     public function getObject(): ?string
  48.     {
  49.         return $this->object;
  50.     }
  51.     public function setObject(?string $object): self
  52.     {
  53.         $this->object $object;
  54.         return $this;
  55.     }
  56.     public function getPiece(): ?string
  57.     {
  58.         return $this->piece;
  59.     }
  60.     public function setPiece(?string $piece): self
  61.     {
  62.         $this->piece $piece;
  63.         return $this;
  64.     }
  65.     public function getSession(): ?Evenement
  66.     {
  67.         return $this->session;
  68.     }
  69.     public function setSession(?Evenement $session): self
  70.     {
  71.         $this->session $session;
  72.         return $this;
  73.     }
  74. }