src/Entity/Task.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TaskRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassTaskRepository::class)]
  7. class Task
  8. {
  9.     use IdentifiableTrait;
  10.     #[ORM\Column(length255)]
  11.     private ?string $title null;
  12.     #[ORM\Column]
  13.     private ?\DateTimeImmutable $created_at null;
  14.     #[ORM\Column(nullabletrue)]
  15.     private ?\DateTimeImmutable $dueDate null;
  16.     #[ORM\Column(typeTypes::TEXT)]
  17.     private ?string $description null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $type null;
  20.     #[ORM\ManyToOne(inversedBy'tasks')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?TaskStatus $status null;
  23.     #[ORM\Column]
  24.     private ?bool $done null;
  25.     #[ORM\ManyToOne(inversedBy'assistantActionTask')]
  26.     private ?VisitReport $visitReport null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getTitle(): ?string
  32.     {
  33.         return $this->title;
  34.     }
  35.     public function setTitle(string $title): static
  36.     {
  37.         $this->title $title;
  38.         return $this;
  39.     }
  40.     public function getDueDate(): ?\DateTimeImmutable
  41.     {
  42.         return $this->dueDate;
  43.     }
  44.     public function setDueDate(?\DateTimeImmutable $dueDate): static
  45.     {
  46.         $this->dueDate $dueDate;
  47.         return $this;
  48.     }
  49.     public function getCreatedAt(): ?\DateTimeImmutable
  50.     {
  51.         return $this->created_at;
  52.     }
  53.     public function setCreatedAt(\DateTimeImmutable $created_at): static
  54.     {
  55.         $this->created_at $created_at;
  56.         return $this;
  57.     }
  58.     public function getDescription(): ?string
  59.     {
  60.         return $this->description;
  61.     }
  62.     public function setDescription(string $description): static
  63.     {
  64.         $this->description $description;
  65.         return $this;
  66.     }
  67.     public function getType(): ?string
  68.     {
  69.         return $this->type;
  70.     }
  71.     public function setType(string $type): static
  72.     {
  73.         $this->type $type;
  74.         return $this;
  75.     }
  76.     public function getStatus(): ?TaskStatus
  77.     {
  78.         return $this->status;
  79.     }
  80.     public function setStatus(?TaskStatus $status): static
  81.     {
  82.         $this->status $status;
  83.         return $this;
  84.     }
  85.     public function isDone(): ?bool
  86.     {
  87.         return $this->done;
  88.     }
  89.     public function setDone(bool $done): static
  90.     {
  91.         $this->done $done;
  92.         return $this;
  93.     }
  94.     public function getVisitReport(): ?VisitReport
  95.     {
  96.         return $this->visitReport;
  97.     }
  98.     public function setVisitReport(?VisitReport $visitReport): static
  99.     {
  100.         $this->visitReport $visitReport;
  101.         return $this;
  102.     }
  103. }