src/Entity/Special/VotingInfo.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Special;
  3. use App\Entity\CuttingSchedule;
  4. use App\Entity\Person;
  5. use App\Entity\User;
  6. use App\Repository\Special\VotingInfoRepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=VotingInfoRepository::class)
  10.  */
  11. class VotingInfo
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="datetime_immutable")
  21.      */
  22.     private $createdAt;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Person::class, inversedBy="votingInfos")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $person;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=CuttingSchedule::class, inversedBy="votingInfos")
  30.      * @ORM\JoinColumn(nullable=true)
  31.      */
  32.     private $CuttingSchedule;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="votingInfos")
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private $createdBy;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getCreatedAt(): ?\DateTimeImmutable
  43.     {
  44.         return $this->createdAt;
  45.     }
  46.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  47.     {
  48.         $this->createdAt $createdAt;
  49.         return $this;
  50.     }
  51.     public function getPerson(): ?Person
  52.     {
  53.         return $this->person;
  54.     }
  55.     public function setPerson(?Person $person): self
  56.     {
  57.         $this->person $person;
  58.         return $this;
  59.     }
  60.     public function getCuttingSchedule(): ?CuttingSchedule
  61.     {
  62.         return $this->CuttingSchedule;
  63.     }
  64.     public function setCuttingSchedule(?CuttingSchedule $CuttingSchedule): self
  65.     {
  66.         $this->CuttingSchedule $CuttingSchedule;
  67.         return $this;
  68.     }
  69.     public function getCreatedBy(): ?User
  70.     {
  71.         return $this->createdBy;
  72.     }
  73.     public function setCreatedBy(?User $createdBy): self
  74.     {
  75.         $this->createdBy $createdBy;
  76.         return $this;
  77.     }
  78. }