70 lines
1.4 KiB
PHP
70 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Enum\ReportStatus;
|
|
use App\Enum\ReportTodoEnum;
|
|
use App\Repository\ReportsTodoRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: ReportsTodoRepository::class)]
|
|
class ReportsTodo
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column(type: Types::SMALLINT, enumType: ReportTodoEnum::class)]
|
|
private ?ReportTodoEnum $name = null;
|
|
|
|
#[ORM\ManyToOne]
|
|
#[ORM\JoinColumn(referencedColumnName: 'id', nullable: false)]
|
|
private ?Reports $report = null;
|
|
|
|
#[ORM\Column(options: ["default" => false])]
|
|
private ?bool $deleted = false;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getName(): ReportTodoEnum
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(ReportTodoEnum $name): static
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getReport(): ?Reports
|
|
{
|
|
return $this->report;
|
|
}
|
|
|
|
public function setReport(?Reports $report): static
|
|
{
|
|
$this->report = $report;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isDeleted(): ?bool
|
|
{
|
|
return $this->deleted;
|
|
}
|
|
|
|
public function setDeleted(bool $deleted): static
|
|
{
|
|
$this->deleted = $deleted;
|
|
|
|
return $this;
|
|
}
|
|
}
|