<?php
namespace App\Entity;
use Symfony\Component\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: 'App\Repository\ObjectiveRepository')]
class Objective
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255)]
private $title;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 32)]
private $priority;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 32, nullable: true)]
private $status;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime', nullable: true)]
private $deadlineAt;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $notes;
#[Groups(['LogService'])]
#[ORM\ManyToOne(targetEntity: 'App\Entity\User', inversedBy: 'objectives')]
#[ORM\JoinColumn(nullable: false)]
private $user;
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[ORM\Column(type: 'datetime', nullable: true)]
private $modifiedAt;
#[ORM\Column(type: 'string', nullable: true)]
private $appraisalYear;
#[ORM\ManyToOne(targetEntity: User::class)]
private $createdBy;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getPriority(): ?string
{
return $this->priority;
}
public function setPriority(string $priority): self
{
$this->priority = $priority;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getDeadlineAt(): ?\DateTimeInterface
{
return $this->deadlineAt;
}
public function setDeadlineAt(\DateTimeInterface $deadlineAt): self
{
$this->deadlineAt = $deadlineAt;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getModifiedAt(): ?\DateTimeInterface
{
return $this->modifiedAt;
}
public function setModifiedAt(\DateTimeInterface $modifiedAt): self
{
$this->modifiedAt = $modifiedAt;
return $this;
}
public function getAppraisalYear(): ?string
{
return $this->appraisalYear;
}
public function setAppraisalYear(string $appraisalYear): self
{
$this->appraisalYear = $appraisalYear;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
}