src/Entity/Nps.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NpsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassNpsRepository::class)]
  6. class Nps
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'nps')]
  13.     #[ORM\JoinColumn(nullabletrue)]
  14.     private $user;
  15.     #[ORM\Column(type'integer')]
  16.     private $score;
  17.     #[ORM\Column(type'datetime')]
  18.     private $createdAt;
  19.     #[ORM\Column(type'datetime'nullabletrue)]
  20.     private $updatedAt;
  21.     #[ORM\Column(type'text'nullabletrue)]
  22.     private $feedback;
  23.     #[ORM\Column(type'string'length20nullabletrue)]
  24.     private $app_version;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getUser(): ?User
  30.     {
  31.         return $this->user;
  32.     }
  33.     public function setUser(?User $user): self
  34.     {
  35.         $this->user $user;
  36.         return $this;
  37.     }
  38.     public function getScore(): ?int
  39.     {
  40.         return $this->score;
  41.     }
  42.     public function setScore(int $score): self
  43.     {
  44.         $this->score $score;
  45.         return $this;
  46.     }
  47.     public function getCreatedAt(): ?\DateTimeInterface
  48.     {
  49.         return $this->createdAt;
  50.     }
  51.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  52.     {
  53.         $this->createdAt $createdAt;
  54.         return $this;
  55.     }
  56.     public function getUpdatedAt(): ?\DateTimeInterface
  57.     {
  58.         return $this->updatedAt;
  59.     }
  60.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  61.     {
  62.         $this->updatedAt $updatedAt;
  63.         return $this;
  64.     }
  65.     public function getFeedback(): ?string
  66.     {
  67.         return $this->feedback;
  68.     }
  69.     public function setFeedback(?string $feedback): self
  70.     {
  71.         $this->feedback $feedback;
  72.         return $this;
  73.     }
  74.     public function getAppVersion(): ?string
  75.     {
  76.         return $this->app_version;
  77.     }
  78.     public function setAppVersion(?string $app_version): self
  79.     {
  80.         $this->app_version $app_version;
  81.         return $this;
  82.     }
  83. }