src/Entity/Objective.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Serializer\Annotation\Groups;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass'App\Repository\ObjectiveRepository')]
  6. class Objective
  7. {
  8.     #[Groups(['LogService'])]
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[Groups(['LogService'])]
  14.     #[ORM\Column(type'string'length255)]
  15.     private $title;
  16.     #[Groups(['LogService'])]
  17.     #[ORM\Column(type'string'length32)]
  18.     private $priority;
  19.     #[Groups(['LogService'])]
  20.     #[ORM\Column(type'string'length32nullabletrue)]
  21.     private $status;
  22.     #[Groups(['LogService'])]
  23.     #[ORM\Column(type'datetime'nullabletrue)]
  24.     private $deadlineAt;
  25.     #[Groups(['LogService'])]
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $notes;
  28.     #[Groups(['LogService'])]
  29.     #[ORM\ManyToOne(targetEntity'App\Entity\User'inversedBy'objectives')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private $user;
  32.     #[ORM\Column(type'datetime')]
  33.     private $createdAt;
  34.     #[ORM\Column(type'datetime'nullabletrue)]
  35.     private $modifiedAt;
  36.     #[ORM\Column(type'string'nullabletrue)]
  37.     private $appraisalYear;
  38.     #[ORM\ManyToOne(targetEntityUser::class)]
  39.     private $createdBy;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getTitle(): ?string
  45.     {
  46.         return $this->title;
  47.     }
  48.     public function setTitle(string $title): self
  49.     {
  50.         $this->title $title;
  51.         return $this;
  52.     }
  53.     public function getPriority(): ?string
  54.     {
  55.         return $this->priority;
  56.     }
  57.     public function setPriority(string $priority): self
  58.     {
  59.         $this->priority $priority;
  60.         return $this;
  61.     }
  62.     public function getStatus(): ?string
  63.     {
  64.         return $this->status;
  65.     }
  66.     public function setStatus(string $status): self
  67.     {
  68.         $this->status $status;
  69.         return $this;
  70.     }
  71.     public function getDeadlineAt(): ?\DateTimeInterface
  72.     {
  73.         return $this->deadlineAt;
  74.     }
  75.     public function setDeadlineAt(\DateTimeInterface $deadlineAt): self
  76.     {
  77.         $this->deadlineAt $deadlineAt;
  78.         return $this;
  79.     }
  80.     public function getNotes(): ?string
  81.     {
  82.         return $this->notes;
  83.     }
  84.     public function setNotes(?string $notes): self
  85.     {
  86.         $this->notes $notes;
  87.         return $this;
  88.     }
  89.     public function getUser(): ?User
  90.     {
  91.         return $this->user;
  92.     }
  93.     public function setUser(?User $user): self
  94.     {
  95.         $this->user $user;
  96.         return $this;
  97.     }
  98.     public function getCreatedAt(): ?\DateTimeInterface
  99.     {
  100.         return $this->createdAt;
  101.     }
  102.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  103.     {
  104.         $this->createdAt $createdAt;
  105.         return $this;
  106.     }
  107.     public function getModifiedAt(): ?\DateTimeInterface
  108.     {
  109.         return $this->modifiedAt;
  110.     }
  111.     public function setModifiedAt(\DateTimeInterface $modifiedAt): self
  112.     {
  113.         $this->modifiedAt $modifiedAt;
  114.         return $this;
  115.     }
  116.     public function getAppraisalYear(): ?string
  117.     {
  118.         return $this->appraisalYear;
  119.     }
  120.     public function setAppraisalYear(string $appraisalYear): self
  121.     {
  122.         $this->appraisalYear $appraisalYear;
  123.         return $this;
  124.     }
  125.     public function getCreatedBy(): ?User
  126.     {
  127.         return $this->createdBy;
  128.     }
  129.     public function setCreatedBy(?User $createdBy): self
  130.     {
  131.         $this->createdBy $createdBy;
  132.         return $this;
  133.     }
  134. }