src/Entity/NoteRequest.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NoteRequestRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassNoteRequestRepository::class)]
  7. class NoteRequest
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'noteRequests')]
  14.     private ?User $pro null;
  15.     #[ORM\ManyToOne(inversedBy'noteRequests')]
  16.     private ?Course $course null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  18.     private ?\DateTimeInterface $createdAt null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $email null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $status null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $lastReminder null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $reference null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $message null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $date null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getPro(): ?User
  36.     {
  37.         return $this->pro;
  38.     }
  39.     public function setPro(?User $pro): static
  40.     {
  41.         $this->pro $pro;
  42.         return $this;
  43.     }
  44.     public function getCourse(): ?Course
  45.     {
  46.         return $this->course;
  47.     }
  48.     public function setCourse(?Course $course): static
  49.     {
  50.         $this->course $course;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeInterface
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62.     public function getEmail(): ?string
  63.     {
  64.         return $this->email;
  65.     }
  66.     public function setEmail(?string $email): static
  67.     {
  68.         $this->email $email;
  69.         return $this;
  70.     }
  71.     public function getStatus(): ?string
  72.     {
  73.         return $this->status;
  74.     }
  75.     public function setStatus(string $status): static
  76.     {
  77.         $this->status $status;
  78.         return $this;
  79.     }
  80.     public function getLastReminder(): ?\DateTimeInterface
  81.     {
  82.         return $this->lastReminder;
  83.     }
  84.     public function setLastReminder(?\DateTimeInterface $lastReminder): static
  85.     {
  86.         $this->lastReminder $lastReminder;
  87.         return $this;
  88.     }
  89.     public function getReference(): ?string
  90.     {
  91.         return $this->reference;
  92.     }
  93.     public function setReference(string $reference): static
  94.     {
  95.         $this->reference $reference;
  96.         return $this;
  97.     }
  98.     public function getMessage(): ?string
  99.     {
  100.         return $this->message;
  101.     }
  102.     public function setMessage(?string $message): static
  103.     {
  104.         $this->message $message;
  105.         return $this;
  106.     }
  107.     public function getDate(): ?string
  108.     {
  109.         return $this->date;
  110.     }
  111.     public function setDate(?string $date): static
  112.     {
  113.         $this->date $date;
  114.         return $this;
  115.     }
  116. }