src/Entity/SupportRequest.php line 6

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. class SupportRequest
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\Column(type'integer')]
  9.     #[ORM\GeneratedValue(strategy'AUTO')]
  10.     private $id;
  11.     #[ORM\Column(type'text'nullabletrue)]
  12.     private $text;
  13.     #[ORM\Column(type'string'nullabletrue)]
  14.     private $app_version;
  15.     #[ORM\Column(type'datetime'nullablefalse)]
  16.     private $date_created;
  17.     #[ORM\ManyToOne(targetEntity'App\Entity\User'inversedBy'supportRequest')]
  18.     #[ORM\JoinColumn(name'user_id'referencedColumnName'id'nullablefalse)]
  19.     private $user;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getText(): ?string
  25.     {
  26.         return $this->text;
  27.     }
  28.     public function setText(?string $text): self
  29.     {
  30.         $this->text $text;
  31.         return $this;
  32.     }
  33.     public function getAppVersion(): ?string
  34.     {
  35.         return $this->app_version;
  36.     }
  37.     public function setAppVersion(?string $app_version): self
  38.     {
  39.         $this->app_version $app_version;
  40.         return $this;
  41.     }
  42.     public function getDateCreated(): ?\DateTimeInterface
  43.     {
  44.         return $this->date_created;
  45.     }
  46.     public function setDateCreated(\DateTimeInterface $date_created): self
  47.     {
  48.         $this->date_created $date_created;
  49.         return $this;
  50.     }
  51.     public function getUser(): ?User
  52.     {
  53.         return $this->user;
  54.     }
  55.     public function setUser(?User $user): self
  56.     {
  57.         $this->user $user;
  58.         return $this;
  59.     }
  60. }