src/Entity/AppraisalQuestionnaire.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AppraisalQuestionnaireRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAppraisalQuestionnaireRepository::class)]
  6. class AppraisalQuestionnaire
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'appraisalQuestionnaires')]
  13.     private $user;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $description;
  16.     #[ORM\Column(type'boolean')]
  17.     private $useScore;
  18.     #[ORM\Column(type'datetime_immutable')]
  19.     private $createdAt;
  20.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  21.     private $updatedAt;
  22.     #[ORM\ManyToOne(targetEntityUser::class)]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private $createdBy;
  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 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 getUseScore(): ?bool
  48.     {
  49.         return $this->useScore;
  50.     }
  51.     public function setUseScore(bool $useScore): self
  52.     {
  53.         $this->useScore $useScore;
  54.         return $this;
  55.     }
  56.     public function getCreatedAt(): ?\DateTimeImmutable
  57.     {
  58.         return $this->createdAt;
  59.     }
  60.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  61.     {
  62.         $this->createdAt $createdAt;
  63.         return $this;
  64.     }
  65.     public function getUpdatedAt(): ?\DateTimeImmutable
  66.     {
  67.         return $this->updatedAt;
  68.     }
  69.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  70.     {
  71.         $this->updatedAt $updatedAt;
  72.         return $this;
  73.     }
  74.     public function getCreatedBy(): ?User
  75.     {
  76.         return $this->createdBy;
  77.     }
  78.     public function setCreatedBy(?User $createdBy): self
  79.     {
  80.         $this->createdBy $createdBy;
  81.         return $this;
  82.     }
  83. }