src/Entity/Action.php line 9
<?php
namespace App\Entity;
use App\Repository\ActionRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ActionRepository::class)]
class Action
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\ManyToOne(inversedBy: 'actions')]
#[ORM\JoinColumn(nullable: false)]
private ?Objective $objective = null;
#[ORM\Column]
private ?bool $status = null;
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $doneAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getObjective(): ?Objective
{
return $this->objective;
}
public function setObjective(?Objective $objective): self
{
$this->objective = $objective;
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
public function getDoneAt(): ?\DateTimeImmutable
{
return $this->doneAt;
}
public function setDoneAt(?\DateTimeImmutable $doneAt): self
{
$this->doneAt = $doneAt;
return $this;
}
}