src/Entity/Reponsereclamation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\ReponsereclamationRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassReponsereclamationRepository::class)]
  9. #[ApiResource]
  10. class Reponsereclamation
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $message null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $piecejointe null;
  20.     #[ORM\ManyToOne(inversedBy'reponsereclamations')]
  21.     private ?User $destinataire null;
  22.     #[ORM\ManyToOne(inversedBy'reponsereclamations')]
  23.     private ?User $expediteur null;
  24.     #[ORM\ManyToOne(inversedBy'reponsereclamations')]
  25.     private ?Reclamation $msg null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getMessage(): ?string
  31.     {
  32.         return $this->message;
  33.     }
  34.     public function setMessage(?string $message): self
  35.     {
  36.         $this->message $message;
  37.         return $this;
  38.     }
  39.     public function getPiecejointe(): ?string
  40.     {
  41.         return $this->piecejointe;
  42.     }
  43.     public function setPiecejointe(?string $piecejointe): self
  44.     {
  45.         $this->piecejointe $piecejointe;
  46.         return $this;
  47.     }
  48.     public function getDestinataire(): ?User
  49.     {
  50.         return $this->destinataire;
  51.     }
  52.     public function setDestinataire(?User $destinataire): self
  53.     {
  54.         $this->destinataire $destinataire;
  55.         return $this;
  56.     }
  57.     public function getExpediteur(): ?User
  58.     {
  59.         return $this->expediteur;
  60.     }
  61.     public function setExpediteur(?User $expediteur): self
  62.     {
  63.         $this->expediteur $expediteur;
  64.         return $this;
  65.     }
  66.     public function getMsg(): ?Reclamation
  67.     {
  68.         return $this->msg;
  69.     }
  70.     public function setMsg(?Reclamation $msg): self
  71.     {
  72.         $this->msg $msg;
  73.         return $this;
  74.     }
  75.     public function __toString(): string
  76.     {
  77.         return $this->getMessage();
  78.     }
  79. }