src/Entity/Action.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassActionRepository::class)]
  6. class Action
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $name null;
  14.     #[ORM\ManyToOne(inversedBy'actions')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?Objective $objective null;
  17.     #[ORM\Column]
  18.     private ?bool $status null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?\DateTimeImmutable $doneAt null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getName(): ?string
  26.     {
  27.         return $this->name;
  28.     }
  29.     public function setName(string $name): self
  30.     {
  31.         $this->name $name;
  32.         return $this;
  33.     }
  34.     public function getObjective(): ?Objective
  35.     {
  36.         return $this->objective;
  37.     }
  38.     public function setObjective(?Objective $objective): self
  39.     {
  40.         $this->objective $objective;
  41.         return $this;
  42.     }
  43.     public function isStatus(): ?bool
  44.     {
  45.         return $this->status;
  46.     }
  47.     public function setStatus(bool $status): self
  48.     {
  49.         $this->status $status;
  50.         return $this;
  51.     }
  52.     public function getDoneAt(): ?\DateTimeImmutable
  53.     {
  54.         return $this->doneAt;
  55.     }
  56.     public function setDoneAt(?\DateTimeImmutable $doneAt): self
  57.     {
  58.         $this->doneAt $doneAt;
  59.         return $this;
  60.     }
  61. }